Thread (14 messages) read the whole thread 14 messages, 4 authors, 2021-06-18

corsair-cpro and hidraw

From: Aleksandr Mezin <hidden>
Date: 2021-06-17 03:11:25

Hello.

I've noticed that corsair-cpro communicates with the device in
request-reply pattern, and also exposes hidraw interface, so userspace
can also send requests. How does the driver figure out that the
current input report is a response to the request sent by the driver,
and not for some other request from userspace? Also if userspace reads
from hidraw, how can it be sure that the report it read is the
response to its last request, and not to some driver's request?

I do not have the hardware, I was just looking at corsair-cpro as a
reference - I'm working on a driver for a similar device (nzxt rgb &
fan controller)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help