Re: kernel notification to user space task

Greg KH (greg@kroah.com)
Fri, 29 Mar 2002 12:06:58 -0800


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/