Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- udevadm info -a -p $(udevadm info -q path -n /dev/sda1)
- Udevadm info starts with the device specified by the devpath and then
- walks up the chain of parent devices. It prints for every device
- found, all possible attributes in the udev rules key format.
- A rule to match, can be composed by the attributes of the device
- and the attributes from one single parent device.
- looking at device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1':
- KERNEL=="sda1"
- SUBSYSTEM=="block"
- DRIVER==""
- ATTR{start}=="2048"
- ATTR{inflight}==" 0 0"
- ATTR{ro}=="0"
- ATTR{size}=="3930112"
- ATTR{partition}=="1"
- ATTR{stat}==" 263 7623 17138 1065 2 0 2 15 0 790 1081 0 0 0 0 0 0"
- ATTR{alignment_offset}=="0"
- ATTR{discard_alignment}=="0"
- looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/host0/target0:0:0/0:0:0:0/block/sda':
- KERNELS=="sda"
- SUBSYSTEMS=="block"
- DRIVERS==""
- ATTRS{removable}=="1"
- ATTRS{ext_range}=="256"
- ATTRS{inflight}==" 0 0"
- ATTRS{events}=="media_change"
- ATTRS{ro}=="0"
- ATTRS{range}=="16"
- ATTRS{events_async}==""
- ATTRS{size}=="3932160"
- ATTRS{capability}=="51"
- ATTRS{stat}==" 287 7623 18194 1135 2 0 2 15 0 850 1150 0 0 0 0 0 0"
- ATTRS{events_poll_msecs}=="-1"
- ATTRS{alignment_offset}=="0"
- ATTRS{hidden}=="0"
- ATTRS{discard_alignment}=="0"
- looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/host0/target0:0:0/0:0:0:0':
- KERNELS=="0:0:0:0"
- SUBSYSTEMS=="scsi"
- DRIVERS=="sd"
- ATTRS{eh_timeout}=="10"
- ATTRS{rev}=="8.07"
- ATTRS{iorequest_cnt}=="0x1e8"
- ATTRS{evt_capacity_change_reported}=="0"
- ATTRS{ioerr_cnt}=="0x2"
- ATTRS{evt_mode_parameter_change_reported}=="0"
- ATTRS{scsi_level}=="5"
- ATTRS{queue_depth}=="1"
- ATTRS{blacklist}==""
- ATTRS{state}=="running"
- ATTRS{device_busy}=="0"
- ATTRS{queue_type}=="none"
- ATTRS{evt_media_change}=="0"
- ATTRS{device_blocked}=="0"
- ATTRS{evt_inquiry_change_reported}=="0"
- ATTRS{inquiry}==""
- ATTRS{model}=="Flash Disk "
- ATTRS{vendor}=="Generic "
- ATTRS{max_sectors}=="240"
- ATTRS{iocounterbits}=="32"
- ATTRS{evt_soft_threshold_reached}=="0"
- ATTRS{timeout}=="30"
- ATTRS{iodone_cnt}=="0x1e8"
- ATTRS{type}=="0"
- ATTRS{evt_lun_change_reported}=="0"
- looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/host0/target0:0:0':
- KERNELS=="target0:0:0"
- SUBSYSTEMS=="scsi"
- DRIVERS==""
- looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/host0':
- KERNELS=="host0"
- SUBSYSTEMS=="scsi"
- DRIVERS==""
- looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0':
- KERNELS=="1-1.4:1.0"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb-storage"
- ATTRS{bAlternateSetting}==" 0"
- ATTRS{bInterfaceSubClass}=="06"
- ATTRS{bInterfaceProtocol}=="50"
- ATTRS{bInterfaceNumber}=="00"
- ATTRS{bNumEndpoints}=="02"
- ATTRS{authorized}=="1"
- ATTRS{supports_autosuspend}=="1"
- ATTRS{bInterfaceClass}=="08"
- looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4':
- KERNELS=="1-1.4"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb"
- ATTRS{bMaxPacketSize0}=="64"
- ATTRS{speed}=="480"
- ATTRS{bcdDevice}=="0106"
- ATTRS{configuration}==""
- ATTRS{bNumInterfaces}==" 1"
- ATTRS{maxchild}=="0"
- ATTRS{serial}=="A44C0D8F"
- ATTRS{avoid_reset_quirk}=="0"
- ATTRS{ltm_capable}=="no"
- ATTRS{authorized}=="1"
- ATTRS{bConfigurationValue}=="1"
- ATTRS{removable}=="removable"
- ATTRS{bMaxPower}=="200mA"
- ATTRS{busnum}=="1"
- ATTRS{bDeviceClass}=="00"
- ATTRS{bNumConfigurations}=="1"
- ATTRS{product}=="Mass Storage"
- ATTRS{tx_lanes}=="1"
- ATTRS{bmAttributes}=="80"
- ATTRS{quirks}=="0x0"
- ATTRS{idProduct}=="6387"
- ATTRS{devpath}=="1.4"
- ATTRS{devnum}=="14"
- ATTRS{version}==" 2.00"
- ATTRS{bDeviceSubClass}=="00"
- ATTRS{manufacturer}=="Generic"
- ATTRS{devspec}=="(null)"
- ATTRS{bDeviceProtocol}=="00"
- ATTRS{idVendor}=="058f"
- ATTRS{urbnum}=="2558"
- ATTRS{rx_lanes}=="1"
- looking at parent device '//devices/platform/soc/3f980000.usb/usb1/1-1':
- KERNELS=="1-1"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb"
- ATTRS{quirks}=="0x0"
- ATTRS{busnum}=="1"
- ATTRS{urbnum}=="724"
- ATTRS{tx_lanes}=="1"
- ATTRS{bNumConfigurations}=="1"
- ATTRS{bNumInterfaces}==" 1"
- ATTRS{avoid_reset_quirk}=="0"
- ATTRS{authorized}=="1"
- ATTRS{removable}=="unknown"
- ATTRS{configuration}==""
- ATTRS{bmAttributes}=="e0"
- ATTRS{devnum}=="2"
- ATTRS{bDeviceProtocol}=="02"
- ATTRS{bDeviceClass}=="09"
- ATTRS{maxchild}=="5"
- ATTRS{idProduct}=="9514"
- ATTRS{devpath}=="1"
- ATTRS{version}==" 2.00"
- ATTRS{bMaxPacketSize0}=="64"
- ATTRS{bMaxPower}=="2mA"
- ATTRS{rx_lanes}=="1"
- ATTRS{ltm_capable}=="no"
- ATTRS{bDeviceSubClass}=="00"
- ATTRS{idVendor}=="0424"
- ATTRS{bcdDevice}=="0200"
- ATTRS{bConfigurationValue}=="1"
- ATTRS{speed}=="480"
- looking at parent device '//devices/platform/soc/3f980000.usb/usb1':
- KERNELS=="usb1"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb"
- ATTRS{ltm_capable}=="no"
- ATTRS{busnum}=="1"
- ATTRS{interface_authorized_default}=="1"
- ATTRS{configuration}==""
- ATTRS{avoid_reset_quirk}=="0"
- ATTRS{manufacturer}=="Linux 5.10.17-v7+ dwc_otg_hcd"
- ATTRS{bConfigurationValue}=="1"
- ATTRS{quirks}=="0x0"
- ATTRS{speed}=="480"
- ATTRS{devpath}=="0"
- ATTRS{bDeviceProtocol}=="01"
- ATTRS{bmAttributes}=="e0"
- ATTRS{idProduct}=="0002"
- ATTRS{version}==" 2.00"
- ATTRS{removable}=="unknown"
- ATTRS{bNumConfigurations}=="1"
- ATTRS{urbnum}=="25"
- ATTRS{bNumInterfaces}==" 1"
- ATTRS{tx_lanes}=="1"
- ATTRS{bDeviceClass}=="09"
- ATTRS{bcdDevice}=="0510"
- ATTRS{product}=="DWC OTG Controller"
- ATTRS{rx_lanes}=="1"
- ATTRS{bMaxPacketSize0}=="64"
- ATTRS{bDeviceSubClass}=="00"
- ATTRS{devnum}=="1"
- ATTRS{maxchild}=="1"
- ATTRS{bMaxPower}=="0mA"
- ATTRS{idVendor}=="1d6b"
- ATTRS{authorized_default}=="1"
- ATTRS{authorized}=="1"
- ATTRS{serial}=="3f980000.usb"
- looking at parent device '//devices/platform/soc/3f980000.usb':
- KERNELS=="3f980000.usb"
- SUBSYSTEMS=="platform"
- DRIVERS=="dwc_otg"
- ATTRS{buspower}=="Bus Power = 0x1"
- ATTRS{mode_ch_tim_en}=="Mode Change Ready Timer Enable = 0x0"
- ATTRS{mode}=="Mode = 0x1"
- ATTRS{gnptxfsiz}=="GNPTXFSIZ = 0x01000306"
- ATTRS{hprt0}=="HPRT0 = 0x00001005"
- ATTRS{spramdump}=="SPRAM Dump"
- ATTRS{srpcapable}=="SRPCapable = 0x1"
- ATTRS{gsnpsid}=="GSNPSID = 0x4f54280a"
- ATTRS{gpvndctl}=="GPVNDCTL = 0x00000000"
- ATTRS{remote_wakeup}=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
- ATTRS{enumspeed}=="Device Enumeration Speed = 0x1"
- ATTRS{bussuspend}=="Bus Suspend = 0x0"
- ATTRS{hcd_frrem}=="HCD Dump Frame Remaining"
- ATTRS{driver_override}=="(null)"
- ATTRS{regvalue}=="invalid offset"
- ATTRS{hsic_connect}=="HSIC Connect = 0x1"
- ATTRS{srp}=="SesReqScs = 0x1"
- ATTRS{regdump}=="Register Dump"
- ATTRS{gusbcfg}=="GUSBCFG = 0x20001700"
- ATTRS{rd_reg_test}=="Time to read GNPTXFSIZ reg 10000000 times: 930 msecs (93 jiffies)"
- ATTRS{rem_wakeup_pwrdn}==""
- ATTRS{wr_reg_test}=="Time to write GNPTXFSIZ reg 10000000 times: 340 msecs (34 jiffies)"
- ATTRS{fr_interval}=="Frame Interval = 0x1d4b"
- ATTRS{busconnected}=="Bus Connected = 0x1"
- ATTRS{gotgctl}=="GOTGCTL = 0x001c0001"
- ATTRS{guid}=="GUID = 0x2708a000"
- ATTRS{grxfsiz}=="GRXFSIZ = 0x00000306"
- ATTRS{hptxfsiz}=="HPTXFSIZ = 0x02000406"
- ATTRS{hnp}=="HstNegScs = 0x0"
- ATTRS{ggpio}=="GGPIO = 0x00000000"
- ATTRS{hcddump}=="HCD Dump"
- ATTRS{hnpcapable}=="HNPCapable = 0x1"
- ATTRS{devspeed}=="Device Speed = 0x0"
- ATTRS{inv_sel_hsic}=="Invert Select HSIC = 0x0"
- ATTRS{regoffset}=="0xffffffff"
- looking at parent device '//devices/platform/soc':
- KERNELS=="soc"
- SUBSYSTEMS=="platform"
- DRIVERS==""
- ATTRS{driver_override}=="(null)"
- looking at parent device '//devices/platform':
- KERNELS=="platform"
- SUBSYSTEMS==""
- DRIVERS==""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement