netlink question
Subsystems (2)
Hi,
As I need to communicate between two parts of the kernel (a core TCP part, and a loaded module), Andi suggested to use netlink for this purpose.
Since I'm not too familiar with Netlink (and I saw only userspace-kernel communication using netlink), I'd need some introductory material about netlink. Is some information about the subject available? Sample code would be sufficient as well.
I've tried google but didn't find too much until now, so some help would be appreciated.
TIA,
Signature · 2 lines
Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Quoted 10 lines · Balazs Scheidler
Hi,
As I need to communicate between two parts of the kernel (a core TCP part, and a loaded module), Andi suggested to use netlink for this purpose.
Since I'm not too familiar with Netlink (and I saw only userspace-kernel communication using netlink), I'd need some introductory material about netlink. Is some information about the subject available? Sample code would be sufficient as well.
Look at notifier_chain_un/register(),un/register_netdevice_notifier(), and their usage. You could also look at the usage of netdev_state_change()
cheers,
jamal