Skip to contentSkip to conversation

netlink question

DISCUSSION Balazs Scheidler 2 participants 2 messages Apr 10, 2002 – Apr 11, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
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