SHARE
TWEET

Untitled

a guest Oct 10th, 2011 110 Never
  1. $ udevinfo -a -p $(udevinfo -q path -n /dev/ttyUSB0)
  2.  
  3. Udevinfo starts with the device specified by the devpath and then
  4. walks up the chain of parent devices. It prints for every device
  5. found, all possible attributes in the udev rules key format.
  6. A rule to match, can be composed by the attributes of the device
  7. and the attributes from one single parent device.
  8.  
  9.   looking at device '/class/tty/ttyUSB0':
  10.     KERNEL=="ttyUSB0"
  11.     SUBSYSTEM=="tty"
  12.     DRIVER==""
  13.     ATTR{dev}=="188:0"
  14.  
  15.   looking at parent device '/devices/pci0000:00/0000:00:0f.5/usb1/1-3/1-3.1/1-3.1:1.0/ttyUSB0':
  16.     KERNELS=="ttyUSB0"
  17.     SUBSYSTEMS=="usb-serial"
  18.     DRIVERS=="pl2303"
  19.  
  20.   looking at parent device '/devices/pci0000:00/0000:00:0f.5/usb1/1-3/1-3.1/1-3.1:1.0':
  21.     KERNELS=="1-3.1:1.0"
  22.     SUBSYSTEMS=="usb"
  23.     DRIVERS=="pl2303"
  24.     ATTRS{modalias}=="usb:v067Bp2303d0300dc00dsc00dp00icFFisc00ip00"
  25.     ATTRS{bInterfaceProtocol}=="00"
  26.     ATTRS{bInterfaceSubClass}=="00"
  27.     ATTRS{bInterfaceClass}=="ff"
  28.     ATTRS{bNumEndpoints}=="03"
  29.     ATTRS{bAlternateSetting}==" 0"
  30.     ATTRS{bInterfaceNumber}=="00"
  31.  
  32.   looking at parent device '/devices/pci0000:00/0000:00:0f.5/usb1/1-3/1-3.1':
  33.     KERNELS=="1-3.1"
  34.     SUBSYSTEMS=="usb"
  35.     DRIVERS=="usb"
  36.     ATTRS{product}=="USB-Serial Controller"
  37.     ATTRS{manufacturer}=="Prolific Technology Inc."
  38.     ATTRS{quirks}=="0x0"
  39.     ATTRS{maxchild}=="0"
  40.     ATTRS{version}==" 1.10"
  41.     ATTRS{devnum}=="14"
  42.     ATTRS{busnum}=="1"
  43.     ATTRS{speed}=="12"
  44.     ATTRS{bMaxPacketSize0}=="64"
  45.     ATTRS{bNumConfigurations}=="1"
  46.     ATTRS{bDeviceProtocol}=="00"
  47.     ATTRS{bDeviceSubClass}=="00"
  48.     ATTRS{bDeviceClass}=="00"
  49.     ATTRS{bcdDevice}=="0300"
  50.     ATTRS{idProduct}=="2303"
  51.     ATTRS{idVendor}=="067b"
  52.     ATTRS{bMaxPower}=="100mA"
  53.     ATTRS{bmAttributes}=="80"
  54.     ATTRS{bConfigurationValue}=="1"
  55.     ATTRS{bNumInterfaces}==" 1"
  56.     ATTRS{configuration}==""
  57.     ATTRS{dev}=="189:13"
  58.  
  59.   looking at parent device '/devices/pci0000:00/0000:00:0f.5/usb1/1-3':
  60.     KERNELS=="1-3"
  61.     SUBSYSTEMS=="usb"
  62.     DRIVERS=="usb"
  63.     ATTRS{product}=="USB2.0 Hub"
  64.     ATTRS{quirks}=="0x0"
  65.     ATTRS{maxchild}=="4"
  66.     ATTRS{version}==" 2.00"
  67.     ATTRS{devnum}=="3"
  68.     ATTRS{busnum}=="1"
  69.     ATTRS{speed}=="480"
  70.     ATTRS{bMaxPacketSize0}=="64"
  71.     ATTRS{bNumConfigurations}=="1"
  72.     ATTRS{bDeviceProtocol}=="01"
  73.     ATTRS{bDeviceSubClass}=="00"
  74.     ATTRS{bDeviceClass}=="09"
  75.     ATTRS{bcdDevice}=="0901"
  76.     ATTRS{idProduct}=="0608"
  77.     ATTRS{idVendor}=="05e3"
  78.     ATTRS{bMaxPower}=="500mA"
  79.     ATTRS{bmAttributes}=="e0"
  80.     ATTRS{bConfigurationValue}=="1"
  81.     ATTRS{bNumInterfaces}==" 1"
  82.     ATTRS{configuration}==""
  83.     ATTRS{dev}=="189:2"
  84.  
  85.   looking at parent device '/devices/pci0000:00/0000:00:0f.5/usb1':
  86.     KERNELS=="usb1"
  87.     SUBSYSTEMS=="usb"
  88.     DRIVERS=="usb"
  89.     ATTRS{serial}=="0000:00:0f.5"
  90.     ATTRS{product}=="EHCI Host Controller"
  91.     ATTRS{manufacturer}=="Linux 2.6.23 ehci_hcd"
  92.     ATTRS{quirks}=="0x0"
  93.     ATTRS{maxchild}=="4"
  94.     ATTRS{version}==" 2.00"
  95.     ATTRS{devnum}=="1"
  96.     ATTRS{busnum}=="1"
  97.     ATTRS{speed}=="480"
  98.     ATTRS{bMaxPacketSize0}=="64"
  99.     ATTRS{bNumConfigurations}=="1"
  100.     ATTRS{bDeviceProtocol}=="01"
  101.     ATTRS{bDeviceSubClass}=="00"
  102.     ATTRS{bDeviceClass}=="09"
  103.     ATTRS{bcdDevice}=="0206"
  104.     ATTRS{idProduct}=="0000"
  105.     ATTRS{idVendor}=="0000"
  106.     ATTRS{bMaxPower}=="  0mA"
  107.     ATTRS{bmAttributes}=="e0"
  108.     ATTRS{bConfigurationValue}=="1"
  109.     ATTRS{bNumInterfaces}==" 1"
  110.     ATTRS{configuration}==""
  111.     ATTRS{dev}=="189:0"
  112.  
  113.   looking at parent device '/devices/pci0000:00/0000:00:0f.5':
  114.     KERNELS=="0000:00:0f.5"
  115.     SUBSYSTEMS=="pci"
  116.     DRIVERS=="ehci_hcd"
  117.     ATTRS{msi_bus}==""
  118.     ATTRS{broken_parity_status}=="0"
  119.     ATTRS{modalias}=="pci:v00001022d00002095sv00001022sd00002095bc0Csc03i20"
  120.     ATTRS{local_cpus}=="1"
  121.     ATTRS{irq}=="11"
  122.     ATTRS{class}=="0x0c0320"
  123.     ATTRS{subsystem_device}=="0x2095"
  124.     ATTRS{subsystem_vendor}=="0x1022"
  125.     ATTRS{device}=="0x2095"
  126.     ATTRS{vendor}=="0x1022"
  127.  
  128.   looking at parent device '/devices/pci0000:00':
  129.     KERNELS=="pci0000:00"
  130.     SUBSYSTEMS==""
  131.     DRIVERS==""
  132.     ATTRS{uevent}==""
  133.  
  134.  
RAW Paste Data
Top