NoPaste

udevadm info Taomon

von Taomon

Dein Code:
  1. root@Taomon:/home/alex# udevadm info /sys/class/block/sdc2 --attribute-walk
  2.  
  3. Udevadm info 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 '/devices/pci0000:00/0000:00:14.0/usb4/4-2/4-2:1.0/host6/target6:0:0/6:0:0:0/block/sdc/sdc2':
  10.     KERNEL=="sdc2"
  11.     SUBSYSTEM=="block"
  12.     DRIVER==""
  13.     ATTR{alignment_offset}=="0"
  14.     ATTR{discard_alignment}=="0"
  15.     ATTR{inflight}=="       0        0"
  16.     ATTR{partition}=="2"
  17.     ATTR{ro}=="0"
  18.     ATTR{size}=="2147483648"
  19.     ATTR{start}=="1048578048"
  20.     ATTR{stat}=="    9605     6946   135202     6784       22       13      280     1956        0     5572     8744"
  21.  
  22.   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb4/4-2/4-2:1.0/host6/target6:0:0/6:0:0:0/block/sdc':
  23.     KERNELS=="sdc"
  24.     SUBSYSTEMS=="block"
  25.     DRIVERS==""
  26.     ATTRS{alignment_offset}=="0"
  27.     ATTRS{badblocks}==""
  28.     ATTRS{capability}=="d0"
  29.     ATTRS{discard_alignment}=="0"
  30.     ATTRS{events}==""
  31.     ATTRS{events_async}==""
  32.     ATTRS{events_poll_msecs}=="-1"
  33.     ATTRS{ext_range}=="256"
  34.     ATTRS{inflight}=="       0        0"
  35.     ATTRS{range}=="16"
  36.     ATTRS{removable}=="0"
  37.     ATTRS{ro}=="0"
  38.     ATTRS{size}=="3907029168"
  39.     ATTRS{stat}=="    9764     6968   142198     8220       32       17      392     2088        0     5928    10312"
  40.  
  41.   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb4/4-2/4-2:1.0/host6/target6:0:0/6:0:0:0':
  42.     KERNELS=="6:0:0:0"
  43.     SUBSYSTEMS=="scsi"
  44.     DRIVERS=="sd"
  45.     ATTRS{device_blocked}=="0"
  46.     ATTRS{device_busy}=="0"
  47.     ATTRS{dh_state}=="detached"
  48.     ATTRS{eh_timeout}=="10"
  49.     ATTRS{evt_capacity_change_reported}=="0"
  50.     ATTRS{evt_inquiry_change_reported}=="0"
  51.     ATTRS{evt_lun_change_reported}=="0"
  52.     ATTRS{evt_media_change}=="0"
  53.     ATTRS{evt_mode_parameter_change_reported}=="0"
  54.     ATTRS{evt_soft_threshold_reached}=="0"
  55.     ATTRS{inquiry}==""
  56.     ATTRS{iocounterbits}=="32"
  57.     ATTRS{iodone_cnt}=="0x26a0"
  58.     ATTRS{ioerr_cnt}=="0x24"
  59.     ATTRS{iorequest_cnt}=="0x26a0"
  60.     ATTRS{max_sectors}=="2048"
  61.     ATTRS{model}=="2115            "
  62.     ATTRS{queue_depth}=="1"
  63.     ATTRS{queue_type}=="none"
  64.     ATTRS{rev}=="0   "
  65.     ATTRS{scsi_level}=="7"
  66.     ATTRS{state}=="running"
  67.     ATTRS{timeout}=="30"
  68.     ATTRS{type}=="0"
  69.     ATTRS{vendor}=="ASMT    "
  70.  
  71.   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb4/4-2/4-2:1.0/host6/target6:0:0':
  72.     KERNELS=="target6:0:0"
  73.     SUBSYSTEMS=="scsi"
  74.     DRIVERS==""
  75.  
  76.   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb4/4-2/4-2:1.0/host6':
  77.     KERNELS=="host6"
  78.     SUBSYSTEMS=="scsi"
  79.     DRIVERS==""
  80.  
  81.   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb4/4-2/4-2:1.0':
  82.     KERNELS=="4-2:1.0"
  83.     SUBSYSTEMS=="usb"
  84.     DRIVERS=="usb-storage"
  85.     ATTRS{authorized}=="1"
  86.     ATTRS{bAlternateSetting}==" 0"
  87.     ATTRS{bInterfaceClass}=="08"
  88.     ATTRS{bInterfaceNumber}=="00"
  89.     ATTRS{bInterfaceProtocol}=="50"
  90.     ATTRS{bInterfaceSubClass}=="06"
  91.     ATTRS{bNumEndpoints}=="02"
  92.     ATTRS{supports_autosuspend}=="1"
  93.  
  94.   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb4/4-2':
  95.     KERNELS=="4-2"
  96.     SUBSYSTEMS=="usb"
  97.     DRIVERS=="usb"
  98.     ATTRS{authorized}=="1"
  99.     ATTRS{avoid_reset_quirk}=="0"
  100.     ATTRS{bConfigurationValue}=="1"
  101.     ATTRS{bDeviceClass}=="00"
  102.     ATTRS{bDeviceProtocol}=="00"
  103.     ATTRS{bDeviceSubClass}=="00"
  104.     ATTRS{bMaxPacketSize0}=="9"
  105.     ATTRS{bMaxPower}=="0mA"
  106.     ATTRS{bNumConfigurations}=="1"
  107.     ATTRS{bNumInterfaces}==" 1"
  108.     ATTRS{bcdDevice}=="0001"
  109.     ATTRS{bmAttributes}=="c0"
  110.     ATTRS{busnum}=="4"
  111.     ATTRS{configuration}==""
  112.     ATTRS{devnum}=="2"
  113.     ATTRS{devpath}=="2"
  114.     ATTRS{idProduct}=="1153"
  115.     ATTRS{idVendor}=="174c"
  116.     ATTRS{ltm_capable}=="no"
  117.     ATTRS{manufacturer}=="ASMedia"
  118.     ATTRS{maxchild}=="0"
  119.     ATTRS{product}=="AS2115"
  120.     ATTRS{quirks}=="0x0"
  121.     ATTRS{removable}=="removable"
  122.     ATTRS{serial}=="00000000000000000000"
  123.     ATTRS{speed}=="5000"
  124.     ATTRS{urbnum}=="29820"
  125.     ATTRS{version}==" 3.00"
  126.  
  127.   looking at parent device '/devices/pci0000:00/0000:00:14.0/usb4':
  128.     KERNELS=="usb4"
  129.     SUBSYSTEMS=="usb"
  130.     DRIVERS=="usb"
  131.     ATTRS{authorized}=="1"
  132.     ATTRS{authorized_default}=="1"
  133.     ATTRS{avoid_reset_quirk}=="0"
  134.     ATTRS{bConfigurationValue}=="1"
  135.     ATTRS{bDeviceClass}=="09"
  136.     ATTRS{bDeviceProtocol}=="03"
  137.     ATTRS{bDeviceSubClass}=="00"
  138.     ATTRS{bMaxPacketSize0}=="9"
  139.     ATTRS{bMaxPower}=="0mA"
  140.     ATTRS{bNumConfigurations}=="1"
  141.     ATTRS{bNumInterfaces}==" 1"
  142.     ATTRS{bcdDevice}=="0409"
  143.     ATTRS{bmAttributes}=="e0"
  144.     ATTRS{busnum}=="4"
  145.     ATTRS{configuration}==""
  146.     ATTRS{devnum}=="1"
  147.     ATTRS{devpath}=="0"
  148.     ATTRS{idProduct}=="0003"
  149.     ATTRS{idVendor}=="1d6b"
  150.     ATTRS{interface_authorized_default}=="1"
  151.     ATTRS{ltm_capable}=="no"
  152.     ATTRS{manufacturer}=="Linux 4.9.0-8-amd64 xhci-hcd"
  153.     ATTRS{maxchild}=="4"
  154.     ATTRS{product}=="xHCI Host Controller"
  155.     ATTRS{quirks}=="0x0"
  156.     ATTRS{removable}=="unknown"
  157.     ATTRS{serial}=="0000:00:14.0"
  158.     ATTRS{speed}=="5000"
  159.     ATTRS{urbnum}=="63"
  160.     ATTRS{version}==" 3.00"
  161.  
  162.   looking at parent device '/devices/pci0000:00/0000:00:14.0':
  163.     KERNELS=="0000:00:14.0"
  164.     SUBSYSTEMS=="pci"
  165.     DRIVERS=="xhci_hcd"
  166.     ATTRS{broken_parity_status}=="0"
  167.     ATTRS{class}=="0x0c0330"
  168.     ATTRS{consistent_dma_mask_bits}=="64"
  169.     ATTRS{d3cold_allowed}=="1"
  170.     ATTRS{device}=="0x1e31"
  171.     ATTRS{dma_mask_bits}=="64"
  172.     ATTRS{driver_override}=="(null)"
  173.     ATTRS{enable}=="1"
  174.     ATTRS{irq}=="25"
  175.     ATTRS{local_cpulist}=="0-3"
  176.     ATTRS{local_cpus}=="0f"
  177.     ATTRS{msi_bus}=="1"
  178.     ATTRS{numa_node}=="-1"
  179.     ATTRS{subsystem_device}=="0x21f3"
  180.     ATTRS{subsystem_vendor}=="0x17aa"
  181.     ATTRS{vendor}=="0x8086"
  182.  
  183.   looking at parent device '/devices/pci0000:00':
  184.     KERNELS=="pci0000:00"
  185.     SUBSYSTEMS==""
  186.     DRIVERS==""
  187.  
  188. root@Taomon:/home/alex#

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. Alternativ kannst du den gesamten Eintrag auch als Datei herunterladen.