|
From: Uwe B. <bo...@el...> - 2010-10-06 11:06:45
|
>>>>> "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
--
Uwe Bonnes bo...@el...
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
|