lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 20 Mar 2009 09:40:33 +0800 (CST)
From:	peter meng <mengsanshui@...oo.com.cn>
To:	linux-kernel@...r.kernel.org
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 




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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ