[PATCH] hiddev: Clarify minor device numbering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



USB hiddev minor device numbering can be dynamic, in which case the
minor be any number from 0 to 255. This is defined in drivers/hid/usbhid/hiddev.c.

Signed-off-by: Thomas Guyot-Sionnest <tguyot@xxxxxxxxx>
---
 Documentation/hid/hiddev.rst | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/hid/hiddev.rst b/Documentation/hid/hiddev.rst
index caebc6266603..9647210cdd34 100644
--- a/Documentation/hid/hiddev.rst
+++ b/Documentation/hid/hiddev.rst
@@ -54,6 +54,13 @@ you need the following commands::
 	mknod /dev/usb/hiddev14 c 180 110
 	mknod /dev/usb/hiddev15 c 180 111
 
+When using CONFIG_USB_DYNAMIC_MINORS you should let udev create these
+devices automatically. They will have a minor ranging from 0 to 255.
+You can find the actual major:minor in the /sys tree under the usbmisc
+class. You can list them with::
+
+  grep -H . /sys/class/usbmisc/hiddev*/dev
+
 So you point your hiddev compliant user-space program at the correct
 interface for your device, and it all just works.
 
-- 
2.30.2




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux