On Sun, Mar 30, 2014 at 3:54 PM, Paul Fertser <[email protected]> wrote: > On Sun, Mar 30, 2014 at 03:46:27PM +0800, Xiaofan Chen wrote: >> This is a problem for libusb and libusb based application when >> there is already an Apple provided kernel driver. > > On Linux libusb is able to "unbind" the kernel driver from the device > on its own. Is it absolutely out of scope for the OS X implementation? > What's the official Apple opinion about that?
I think you either use kextunload or better appropriately codeless kext. There is no programming way to unbind the kernel driver. > The way you propose sounds sort of messy, as cumbersome as > those silly tricks that windows users have to resort to. Actually for device without system driver, Mac OS X is quite easy in terms of using libusb. For device with system driver, Mac OS X is actually more difficult in terms of libusb than Windows since you can use Zadig to easily switching drivers under Windows. Luckily there is this HIDAPI which saves a lot of trouble for USB HID device. If not, then it is actually quite difficult to use libusb under Mac OS X for USB HID device. > Of course some modifications to README.OSX will be made > regardless of the discussion result, thank you for paying attention > to that! -- Xiaofan ------------------------------------------------------------------------------ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
