On Wed, Jul 13, 2005 at 03:06:38PM -0400, Steven Rostedt wrote:
> > 3. Since SPIN_LOCK_UNLOCKED now takes the lock itself as an
> > argument, what is the best way to initialize per-CPU
> > locks? An explicit initialization function, or is there
> > some way that I am missing to make an initializer?
> Ouch, I just notice that (been using an older version for some time).
> Ingo, is this to force the initialization of the lists instead of at
ANSI C99 is missing a concept of "self" during auto-intialization. The
explicit passing of the lvalue is needed so that it can be propagated
downward to other macros in the initialization structure. list_head
initialization is one of those things if I remember correctly.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Video 4 Linux]
[Linux for the blind]