diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-09 12:11:46 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 22:21:19 -0700 |
commit | f156b6d2037ff09f7218e11d5326c05488356ea1 (patch) | |
tree | 56c7b5669a3d9869b0b527780d0b0379eab11abf /udevinfo.8 | |
parent | 4a231017ff6e9f66a685b0d1e4e49dc46645bb40 (diff) |
[PATCH] add sysfs info walk to udevinfo
The option "-s" will get information about the major/minor,
the physical device, the bus value and the driver from sysfs for
all class and block devices:
kay@pim udev.kay]$ ./udevinfo -s
DEVPATH '/sys/block/sda'
SUBSYSTEM 'block'
NAME 'sda'
MAJORMINOR '8:0'
PHYSDEVPATH '/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host2/target2:0:0/2:0:0:0'
PHYSDEVPATHBUS 'scsi'
DRIVER 'sd'
DEVPATH '/sys/class/input/mice'
SUBSYSTEM 'input'
NAME 'mice'
MAJORMINOR '13:63'
DEVPATH '/sys/class/input/mouse0'
SUBSYSTEM 'input'
NAME 'mouse0'
MAJORMINOR '13:32'
...
Diffstat (limited to 'udevinfo.8')
-rw-r--r-- | udevinfo.8 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/udevinfo.8 b/udevinfo.8 index a04e6df463..599a0033f8 100644 --- a/udevinfo.8 +++ b/udevinfo.8 @@ -46,6 +46,10 @@ attributes along the device chain. Useful for finding unique attributes to compose a rule. .RB Needs " \-p " specified. .TP +.B \-s +Print all sysfs devices with the major/minor number, the physical device and +the bus value. +.TP .B \-h Print help text. .SH "FILES" |