Re: kernel notification to user space task

From: Greg KH (greg@kroah.com)
Date: Fri Mar 29 2002 - 15:06:58 EST


On Fri, Mar 29, 2002 at 10:50:13PM +0530, Amol Kumar Lad wrote:
>
> for example..if my driver detects that interface 'eth0' is coming up, it
> should send a indication to user task saying 'network interface eth0 is up'

If this is not just a hypothetical example, this kind of userspace
notification is already present in the kernel. /sbin/hotplug gets
called when ever any network interface is brought up or down. See the
documentation at linux-hotplug.sf.net for more information if you're
curious.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Mar 31 2002 - 22:00:18 EST