2009-03-20 01:40:48

by peter meng

[permalink] [raw]
Subject: Ask a question about major and minor number of keyboard driver .


Hi,

Such as drivers/input/keyboard/neo1973kbd.c :

input_dev->name = "Neo1973 Buttons";
input_dev->phys = "neo1973kbd/input0";
input_dev->id.bustype = BUS_HOST;

As i understand , application will access /dev/input/neo1973kbd/input0 as input handler such as open(/dev/input/neo1973kbd/input0) .
I want to know which minor number will be used by input0 , because event0
will use minor number 64 .
Assume no minor number for neo1973kbd/input0 ,how the driver process open(/dev/input/neo1973kbd/input0) ? because no major and minor number related to it .


ls -l /dev/input/
crw-r----- 1 root root 13, 64 2009-03-20 08:54 event0


Thanks in Advanced .
Best Regards.
Peter Meng