There is a chain corresponding to each such event. Any one interested for an event registers a callback function into the corresponding chain by calling notifier_chain_register.
Have a look at this:
net/ipv6/addrconf.c
--------------------------------------snip------------------------
int register_inet6addr_notifier(struct notifier_block *nb)
{
return notifier_chain_register(&inet6addr_chain, nb);
}
--------------------------------------snip------------------------
Regards,
- Ratnadeep
On 5/8/07, pradeep singh <
2500.pradeep@xxxxxxxxx> wrote:
Hi All,
While going through the code in kernel/sys.c and
include/linux/notifier.h , i came across notifier chains in kernel
2.6.20.1 .
What are notifier chains exactly and why do we need them in the networking code?
Is it a generic callback list? Or is it specific to the networking stack?
Any help?
Thanks
~psr
--
play the game
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ