[libhid-discuss] HID Device hang

Xiaofan Chen xiaofanc at gmail.com
Tue Oct 16 12:26:46 UTC 2007


On 10/16/07, ankita prasad <prasad.ankita at gmail.com> wrote:
> Hi People,
>
> I am helping a professor who has written a very basic HID device driver for
> his HID device. His code pretty much treats /dev/hiddev0 as a file and uses
> ioctl calls  to to open a handle to the file and use it to read from it and
> write to it.
>
> When using this driver, he can read and write to the device but after about
> one minute, the device hangs. The only thing that I saw in his code is that
> he doesn't explicitly blacklist the HID device from the kernel. Could this
> be a reason for the sudden hang?
>

In this case, I think he is using the kernel HID driver and the hiddev API.
So this has nothing to do with libhid (based on libusb) and blacklisting
of the HID device in the kernel.

Xiaofan



More information about the libhid-discuss mailing list