I am writing a device driver for a usb device using libusb. When I try to request a device, I get the error code LIBUSB_ERROR_BUSY (-6). According to the documentation, which means that the device has already been declared ( link ).
How to find out which driver / program announced the device, and more importantly, how can I request the device myself after it is approved.
Code snippet:
r = libusb_claim_interface(handle[0], 0); if (r < 0) { fprintf(stderr, "libusb_claim_interface error %d\n", r); goto out_release; } printf("claimed interface\n");
Output:
libusb_claim_interface error -6
linux usb driver libusb
jairo
source share