Re: need for notifier chains?

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

 



A notifier chain is basically a chain of callback functions that are called when a corresponding event has occurred. Events can vary from addition a hoplug cpu to assignment of a network address.
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



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux