On Thu, May 17, 2001 at 05:22:02AM +1000, Brad Hards wrote:
> 
> If you want to be advised when things change, use the usbview code (see 
> http://sourceforge.net/projects/usbview/) that Greg K-H wrote as an example. I
> think it polls on /proc/bus/usb/devices for changes. You might be able to use
> the same thing.

usbview does a stat(2) on the /proc/bus/usb/devices file to see if it
has changed from the last time it looked at it.  poll(2) would also work
if you don't mind sleeping (Gtk+ apps don't like doing that easily,
without threads involved.)

greg k-h

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to