All pastes #72354 Raw Edit

Unnamed

public text v1 · immutable
#72354 ·published 2006-06-26 20:01 UTC
rendered paste body
bedazzled@desktop ~ $ udevinfo -a -p /sys/block/sda

udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

  looking at device '/block/sda':
    KERNEL=="sda"
    SUBSYSTEM=="block"
    SYSFS{stat}=="   19425     5408   413946   540074    48396   152139  1604408   123990        0    72615   664064"
    SYSFS{size}=="145226112"
    SYSFS{removable}=="0"
    SYSFS{range}=="16"
    SYSFS{dev}=="8:0"

  looking at device '/devices/pci0000:00/0000:00:07.0/host0/target0:0:0/0:0:0:0':
    ID=="0:0:0:0"
    BUS=="scsi"
    DRIVER=="sd"
    SYSFS{ioerr_cnt}=="0x0"
    SYSFS{iodone_cnt}=="0x108fa"
    SYSFS{iorequest_cnt}=="0x108fa"
    SYSFS{iocounterbits}=="32"
    SYSFS{timeout}=="30"
    SYSFS{state}=="running"
    SYSFS{rev}=="27.0"
    SYSFS{model}=="WDC WD740GD-00FL"
    SYSFS{vendor}=="ATA     "
    SYSFS{scsi_level}=="6"
    SYSFS{type}=="0"
    SYSFS{queue_type}=="none"
    SYSFS{queue_depth}=="1"
    SYSFS{device_blocked}=="0"

  looking at device '/devices/pci0000:00/0000:00:07.0/host0/target0:0:0':
    ID=="target0:0:0"
    BUS==""
    DRIVER==""

  looking at device '/devices/pci0000:00/0000:00:07.0/host0':
    ID=="host0"
    BUS==""
    DRIVER==""

  looking at device '/devices/pci0000:00/0000:00:07.0':
    ID=="0000:00:07.0"
    BUS=="pci"
    DRIVER=="sata_nv"
    SYSFS{modalias}=="pci:v000010DEd00000054sv00001462sd00007125bc01sc01i85"
    SYSFS{local_cpus}=="1"
    SYSFS{irq}=="10"
    SYSFS{class}=="0x010185"
    SYSFS{subsystem_device}=="0x7125"
    SYSFS{subsystem_vendor}=="0x1462"
    SYSFS{device}=="0x0054"
    SYSFS{vendor}=="0x10de"

  looking at device '/devices/pci0000:00':
    ID=="pci0000:00"
    BUS==""
    DRIVER==""

bedazzled@desktop ~ $ udevinfo -a -p /sys/block/hda

udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

  looking at device '/block/hda':
    KERNEL=="hda"
    SUBSYSTEM=="block"
    SYSFS{stat}=="       0        0        0        0        0        0        0        0        0        0        0"
    SYSFS{size}=="8388604"
    SYSFS{removable}=="1"
    SYSFS{range}=="1"
    SYSFS{dev}=="3:0"

  looking at device '/devices/pci0000:00/0000:00:06.0/ide0/0.0':
    ID=="0.0"
    BUS=="ide"
    DRIVER=="ide-cdrom"
    SYSFS{modalias}=="ide:m-cdrom"
    SYSFS{drivename}=="hda"
    SYSFS{media}=="cdrom"

  looking at device '/devices/pci0000:00/0000:00:06.0/ide0':
    ID=="ide0"
    BUS==""
    DRIVER==""

  looking at device '/devices/pci0000:00/0000:00:06.0':
    ID=="0000:00:06.0"
    BUS=="pci"
    DRIVER=="AMD_IDE"
    SYSFS{modalias}=="pci:v000010DEd00000053sv00001462sd00007125bc01sc01i8a"
    SYSFS{local_cpus}=="1"
    SYSFS{irq}=="0"
    SYSFS{class}=="0x01018a"
    SYSFS{subsystem_device}=="0x7125"
    SYSFS{subsystem_vendor}=="0x1462"
    SYSFS{device}=="0x0053"
    SYSFS{vendor}=="0x10de"

  looking at device '/devices/pci0000:00':
    ID=="pci0000:00"
    BUS==""
    DRIVER==""