lkml.org 
[lkml]   [2006]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch -mm] notifier chain initialization
On 22 Mar 2006, Jes Sorensen wrote:

> Hi,
>
> This one is against the -mm tree, description below.
>
> Cheers,
> Jes
>
> This patch goes on top of Alan Stern's
> notifier-chain-update-api-changes.patch
>
> It restructures the notifier chain initialization macros by
> introducing FOO_NOTIFIER_INIT() macros which are used by the
> FOO_NOTIFIER_HEAD() macros.
>
> The benefit is that one can use the FOO_NOTIFIER_INIT() macro for
> static initialization of a notifier chain.

You probably mean _dynamic_ initialization of a notifier head. The
current code handles static initialization just fine.

There's nothing wrong with doing things like this. I didn't include
initialization macros originally simply because there aren't any
dynamically-initialized notifier heads in the kernel.

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-22 18:08    [W:0.050 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site