lkml.org 
[lkml]   [1999]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: USB state change notification to user space
Date
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.038 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site