LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   HID device (http://www.linuxquestions.org/questions/programming-9/hid-device-465214/)

_frenzy 07-18-2006 10:00 AM

HID device
 
Hello,

There is UPS APC RS-500 and ibusb(newhidups) library is used. Linux 2.6.10 kernel.
The 'usb_claim_interface' function returns -EBUSY when 'newhidups' is executed,
it's ok because this interface already claimed by usbhid.

At that time function 'usb_detach_kernel_driver_np' is executed,
to detach driver from this interface, then retry claiming and
code work fine.

It's also ok, but /sys/class/usb/hiddev0 and /dev/usb/hiddev0 will be removed.

How to make so that HID device isn't being removed from the system?


All times are GMT -5. The time now is 09:59 PM.