Re: exclusive access - libusb_claim_inferface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

After some experimentation a couple of weeks ago...

libusb_claim_interface() grants exclusive access to the USB device and blocks any more instances until the first has
released the interface. However if a second instance calls libusb_detach_kernel_driver() beforehand then libusb_claim_interface() will grant access. This has likely just broken the first instance.

Don't call libusb_detach_kernel_interface() regardless; if you really need to detach a kernel driver then you can
unbind it by doing this sort of thing:

echo "3-3:1.0" > /sys/module/usbserial/holders/ftdi_sio/drivers/usb:ftdi_sio/unbind


Cheers, Steve




--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux