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