[lkml]   [2005]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/3] Make cap default
Hi James,

On Tue, Jul 05, 2005 at 11:40:40AM -0400, James Morris wrote:
> On Tue, 5 Jul 2005, Kurt Garloff wrote:
> > # define COND_SECURITY(seop, def) \
> > (security_opt->seop == NULL) || \
> > security_ops == &capability_security_ops)? \
> > def: security_ops->seop
> Why is this a macro and not a static inline?

Good question ...

The number and type of parameters is variable, so we can't
easily do it with ONE static inline function.

seop is the function call including parameters, as is def.
Which means that the idea won't work the way I suggested in
the email. We'd need a three arg version, one for the security_ops
function name, one for the cap version and one for the arguments.

Kurt Garloff, Director SUSE Labs, Novell Inc.
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2005-07-05 18:40    [W:0.033 / U:2.016 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site