Thread (5 messages) flat view 5 messages, 3 authors, 2016-09-11

Extend device driver?

From: Daniel. <hidden>
Date: 2016-09-10 17:53:32

You may want to look at http://www.signal11.us/oss/hidapi/ too, it has
nice interface to HID device and supports libusb and hidraw backends
(y)

Regards,

2016-09-10 12:14 GMT-03:00 Greg KH [off-list ref]:
On Sat, Sep 10, 2016 at 04:41:34PM +0200, Pol Eyschen wrote:
quoted
Hi everyone,

I want to implement some custom functions of my mouse (Madcatz RAT5) in
Linux, e.g custom DPI-values. As this requires writing over USB to the
firmware of the mouse I was thinking of writing a module to accomplish
this. However I don't want to reimplement a whole mouse-driver,so I
wanted to ask if there is a possibility of binding the device to 2
modules or having my module extend usbhid, so that my module would only
be used to perform these custom operations while usbhid stays in charge
of the whole "mouse business".
Please just use the hidraw userspace driver/library instead, that way
you don't have to unbind the kernel driver and everything should work
just fine without having to touch the kernel at all.

Hope this helps,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


-- 
"Do or do not. There is no try"
  Yoda Master
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help