any way to detect usb detached from a device driver ?
rizzo at icir.org
Tue Jan 9 16:47:12 UTC 2007
I am modifying a kernel device driver for webcams
packing together various projects around, and i was wondering
how to handle the situation of a device being
detached while in use.
Right now the code (from ports/multimedia/pwcbsd) detects
that the device is in use while the driver-specific USB_DETACH
routine is called, however then it goes on without doing
In another driver in the dree (urio.c) i see the driver
calls usb_detach_wait() to wait up to 60s for the
drivers to complete. However that function is not documented
and used a bit inconsistently in the rest of /sys/dev/usb
Any suggestions ?
More information about the freebsd-usb