chiark / gitweb /
[PATCH] add sysfs info walk to udevinfo
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Tue, 9 Nov 2004 11:11:46 +0000 (12:11 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 05:21:19 +0000 (22:21 -0700)
commitf156b6d2037ff09f7218e11d5326c05488356ea1
tree56c7b5669a3d9869b0b527780d0b0379eab11abf
parent4a231017ff6e9f66a685b0d1e4e49dc46645bb40
[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'

...
udevinfo.8
udevinfo.c