All pastes #342910 Raw Edit

ravehanker

public text v1 · immutable
·published 2007-02-06 17:13 UTC
rendered paste body

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/sdb':
    KERNEL=="sdb"
    SUBSYSTEM=="block"
    SYSFS{stat}=="      23       19      259       48        0        0        0        0        0       40       48"
    SYSFS{size}=="2070784"
    SYSFS{removable}=="1"
    SYSFS{range}=="16"
    SYSFS{dev}=="8:16"

  looking at device '/devices/pci0000:00/0000:00:1d.7/usb5/5-6/5-6:1.0/host20/target20:0:0/20:0:0:0':
    ID=="20:0:0:0"
    BUS=="scsi"
    DRIVER=="sd"
    SYSFS{ioerr_cnt}=="0x0"
    SYSFS{iodone_cnt}=="0xe2"
    SYSFS{iorequest_cnt}=="0xe2"
    SYSFS{iocounterbits}=="32"
    SYSFS{timeout}=="30"
    SYSFS{state}=="running"
    SYSFS{rev}=="2.00"
    SYSFS{model}=="Flash Disk      "
    SYSFS{vendor}=="ChipsBnk"
    SYSFS{scsi_level}=="3"
    SYSFS{type}=="0"
    SYSFS{queue_type}=="none"
    SYSFS{queue_depth}=="1"
    SYSFS{device_blocked}=="0"
    SYSFS{max_sectors}=="240"

  looking at device '/devices/pci0000:00/0000:00:1d.7/usb5/5-6/5-6:1.0/host20/target20:0:0':
    ID=="target20:0:0"
    BUS==""
    DRIVER==""

  looking at device '/devices/pci0000:00/0000:00:1d.7/usb5/5-6/5-6:1.0/host20':
    ID=="host20"
    BUS==""
    DRIVER==""

  looking at device '/devices/pci0000:00/0000:00:1d.7/usb5/5-6/5-6:1.0':
    ID=="5-6:1.0"
    BUS=="usb"
    DRIVER=="usb-storage"
    SYSFS{modalias}=="usb:v0204p6025d0100dc00dsc00dp00ic08isc06ip50"
    SYSFS{bInterfaceProtocol}=="50"
    SYSFS{bInterfaceSubClass}=="06"
    SYSFS{bInterfaceClass}=="08"
    SYSFS{bNumEndpoints}=="02"
    SYSFS{bAlternateSetting}==" 0"
    SYSFS{bInterfaceNumber}=="00"

  looking at device '/devices/pci0000:00/0000:00:1d.7/usb5/5-6':
    ID=="5-6"
    BUS=="usb"
    DRIVER=="usb"
    SYSFS{configuration}==""
    SYSFS{maxchild}=="0"
    SYSFS{version}==" 2.00"
    SYSFS{devnum}=="40"
    SYSFS{speed}=="480"
    SYSFS{bMaxPacketSize0}=="64"
    SYSFS{bNumConfigurations}=="1"
    SYSFS{bDeviceProtocol}=="00"
    SYSFS{bDeviceSubClass}=="00"
    SYSFS{bDeviceClass}=="00"
    SYSFS{bcdDevice}=="0100"
    SYSFS{idProduct}=="6025"
    SYSFS{idVendor}=="0204"
    SYSFS{bMaxPower}=="100mA"
    SYSFS{bmAttributes}=="80"
    SYSFS{bConfigurationValue}=="1"
    SYSFS{bNumInterfaces}==" 1"

  looking at device '/devices/pci0000:00/0000:00:1d.7/usb5':
    ID=="usb5"
    BUS=="usb"
    DRIVER=="usb"
    SYSFS{configuration}==""
    SYSFS{serial}=="0000:00:1d.7"
    SYSFS{product}=="EHCI Host Controller"
    SYSFS{manufacturer}=="Linux 2.6.17-10-generic ehci_hcd"
    SYSFS{maxchild}=="8"
    SYSFS{version}==" 2.00"
    SYSFS{devnum}=="1"
    SYSFS{speed}=="480"
    SYSFS{bMaxPacketSize0}=="64"
    SYSFS{bNumConfigurations}=="1"
    SYSFS{bDeviceProtocol}=="01"
    SYSFS{bDeviceSubClass}=="00"
    SYSFS{bDeviceClass}=="09"
    SYSFS{bcdDevice}=="0206"
    SYSFS{idProduct}=="0000"
    SYSFS{idVendor}=="0000"
    SYSFS{bMaxPower}=="  0mA"
    SYSFS{bmAttributes}=="e0"
    SYSFS{bConfigurationValue}=="1"
    SYSFS{bNumInterfaces}==" 1"

  looking at device '/devices/pci0000:00/0000:00:1d.7':
    ID=="0000:00:1d.7"
    BUS=="pci"
    DRIVER=="ehci_hcd"
    SYSFS{modalias}=="pci:v00008086d0000265Csv00008086sd00004156bc0Csc03i20"
    SYSFS{local_cpus}=="ff"
    SYSFS{irq}=="58"
    SYSFS{class}=="0x0c0320"
    SYSFS{subsystem_device}=="0x4156"
    SYSFS{subsystem_vendor}=="0x8086"
    SYSFS{device}=="0x265c"
    SYSFS{vendor}=="0x8086"

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