Linux input core and /dev mapping

Category: Linux
------------------------------------------------------------
Input core is collection of drivers that is designed to support all input devices under Linux. Some of these inputs work directly and others are available in the form of character drivers.
E.g. touch-screen
A touch-screen driver will register it-self as a input device, and if it's the first device then it would be treated as event0.
Any application can make use of this even0 in the form of character driver with major number as 13 and minor number as 64!
Generally as the devices get register themselves with input core they are assigned next event numbers and they are available with next minor number. So, event1 will be available with major number 13 and minor number 65!

The input devices are categorized into joystick, mouse, keyboard and event devices.

Ref:
Linux kernel documentation!

Comments