Re: need for notifier chains?

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

 



On 5/17/07, Ratnadeep Joshi <ratn.josh@xxxxxxxxx> wrote:
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.
Thanks for the help, Ratan
Will look into that.

~psr

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
>
>




--
play the game
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux