|
From: Xiaofan C. <xia...@gm...> - 2010-10-06 11:12:33
|
On Wed, Oct 6, 2010 at 7:06 PM, Uwe Bonnes <bo...@el...> wrote: >>>>>> "Xiaofan" == Xiaofan Chen <xia...@gm...> writes: > > > Xiaofan> Typo. I expect libusb_kernel_driver_active to return 0 if only > Xiaofan> "usbfs" is bound to the interface. > > Xiaofan> 0 if no kernel driver is active 1 if a kernel driver is > Xiaofan> active LIBUSB_ERROR_NO_DEVICE if the device has been > Xiaofan> disconnected another LIBUSB_ERROR code on other failure > > But then you loose the ability to distinguish if no other code is accessing > the device or if another application is accessing the device via usbfs No, that is the job of libusb_claim_interface. -- Xiaofan |