I am trying to implement user space usb driver using libusb1.0.9. I have lpc2148 blueboard(ARM7) with me..This board is loaded with opensource USB stack/firmware by Mr. Bertrik
To handle kernal detaching.
if(libusb_kernel_driver_active(dev_handle, 0) == 1) //find out if kernel driver is attached { cout << "Kernel Driver Active" << endl; if(libusb_detach_kernel_driver(dev_handle, 0) == 0) //detach it { cout << "Kernel Driver Detached!" << endl; } }