Re: notifiers to user space

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

 



Hi,

> > Do anyone have an idea how to send a notifier to a user space application ?
> I'm not sure if it would be useful, but the function
> "call_usermodehelper()" (defined in include/linux/kmod.h) can be used
> to execute a user space binary from the kernel space. It is used by
> the hot-plug mechanism to notify user space about the new devices
> added to the kernel.

I think that signals to udev is via NETLINK sockets.

I'm not sure about udev - may be it doesn't use call_usermodehelper.

How would you use call_usermodehelper ? invoke a script ?
It sounds unreliable and slow I think...

You can find the usage in kobject_uevent(). The call is used to invoke
a user level hot-plug script (by default /sbin/hotplug). This script
may do things like loading a driver for a device etc.

However, yes I too think it would be slow and unreliable, and will not
suit your purpose.

Thanks,

Rajat

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