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/