Re: Netlink event listener in kernel

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

 



Thanks, I somehow missed the notification chains. I'll have a look at it and check if it can work for me.

Regards,
Martin

kachin2@xxxxxxxxx wrote:
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 <andre@xxxxxxxxxx <mailto:andre@xxxxxxxxxx>> 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 ecartis@xxxxxxxxxxxx
    <mailto:ecartis@xxxxxxxxxxxx>
    Please read the FAQ at http://kernelnewbies.org/FAQ




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