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
On Tue, Apr 28, 2009 at 06:32:07PM -0700, Anil kumar wrote:
>
> 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