Re: USB state change notification to user space

Paul Ashton (lk@mailandnews.com)
Sun, 05 Sep 1999 10:25:06 +0100


> I'd like to offer a way for user level programs to be informed of state
> changes on the USB bus. (ie device plugging in, device unplugging, new
> bus registered)

> 1) opening /dev/bus/usb and poll'ing on read, then rescanning the
> /proc/bus/<busno> directory to find the change. Kinda weird doing file
> type things on a directory tho

Perhaps if we had the equivalent of the win32 function
FindFirstChangeNotification():
http://msdn.microsoft.com/library/sdkdoc/winbase/filesio_9hgu.htm
we'd get this for free.

Has anyone thought of/already patched directory change notification to
ext2 or /proc?

Paul

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