tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Initializer and initialization macros in queue.h



On Fri, Jul 31, 2015 at 10:25:32AM +0000, Matthias-Christian Ott wrote:
> queue.h defines initializers macros (e.g. LIST_HEAD_INITIALIZER) and
> initialization macros (e.g. LIST_INIT). The initializer macros have been
> introduced in NetBSD. I'm not sure how what's the intended purpose of
> both macro types.

The head initializer macros allow the globals to be usable directly
without any runtime initialisation. That can simplify setup logic a lot.

Joerg


Home | Main Index | Thread Index | Old Index