Have you looked into using the notification chains? Registering to this chains (via notifier_chain_register) will notify you about the event by invoking your callback function.
On Sun, Jun 28, 2009 at 11:03 PM, Martin Andre <[email protected]> wrote: > Hello, > > I'm new to this list and also to kernel development. > > I'd like to get notified when some specific event happen in the kernel, > like for example when a network interface goes up, or when a new wireless > Access Point has been discovered. In fact, all the events I'd like to catch > are broadcasted over netlink. > > I found a lot of documentation about the communication between kernel and > userland using netlink, but could hardly find documentation about kernel to > kernel netlink usage. > > What's the appropriate mechanism to catch the events I'm interested in? And > provided opening a netlink socket in the kernel is the way to go, could you > point me to relevant documentation or code example? > > Regards, > Martin > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to [email protected] > Please read the FAQ at http://kernelnewbies.org/FAQ > >
