最終更新:2015-01-27 (火) 17:30:37 (3376d)
libusb_set_auto_detach_kernel_driver
Top / libusb_set_auto_detach_kernel_driver
Enable/disable libusb's automatic kernel driver detachment.
int libusb_set_auto_detach_kernel_driver(libusb_device_handle * dev,int enable )
内容
- When this is enabled libusb will automatically detach the kernel driver on an interface when claiming the interface, and attach it when releasing the interface.
- Automatic kernel driver detachment is disabled on newly opened device handles by default.
- On platforms which do not have LIBUSB_CAP_SUPPORTS_DETACH_KERNEL_DRIVER this function will return LIBUSB_ERROR_NOT_SUPPORTED, and libusb will continue as if this function was never called.