I am currently reading LDD3, and have some question about how Linux actually proesses input from a device in /dev/input/mouse*?
When I cat /dev/input/mouse2
(for my logitech mouse) I see input when I move.
How does the kernel take the bytes from this char device and make it display the mouse on my screen? I have also read about the Linux input subsystem kernel API, which confuses me because why would I need to write to an inode I create at /dev/input/mouse* when I can just send information directly through this API?
The Linux kernel doesn't process /dev/input/mouse*
The kernel is what provides /dev/input/mouse*
Userspace programs like X.org can then read this device and show a cursor moving accordingly.