Ask a question about major and minor number of keyboard driver .

From: peter meng
Date: Thu Mar 19 2009 - 21:40:52 EST



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





--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/