Skip to contentSkip to conversation

netlink NETLINK_KOBJECT_UEVENT older 2.6 kernels

DISCUSSION Anil kumar 2 participants 2 messages Apr 29, 2009

lore
Share & tools
lore

Anil kumar

author
#0 lore raw

Hi,

I see that we can use NETLINK_KOBJECT_UEVENT to send kernel messages to user space. This is available in most of the latest 2.6 kernels. But if I pick older kernels like 2.6.9 and NETLINK_KOBJECT_UEVENT is not available.

Is there anything equivalent to NETLINK_KOBJECT_UEVENT for the driver to send messages to user space in older 2.6 kernels?

Thanks for your help in advance.

With regards,
Anil

#1 lore raw
Quoted 10 lines · Anil kumar

Hi,

I see that we can use NETLINK_KOBJECT_UEVENT to send kernel messages to user space. This is available in most of the latest 2.6 kernels. But if I pick older kernels like 2.6.9 and NETLINK_KOBJECT_UEVENT is not available.

Is there anything equivalent to NETLINK_KOBJECT_UEVENT for the driver to send messages to user space in older 2.6 kernels?

Older like 2.6.9? Wow, that's _many_ years old, why do you want to add support for old kernels to something you are developing now?

Older kernels used the /sbin/hotplug interface to send messages to userspace, you can use that.

good luck, you will need it :)

greg k-h