Advertisement
silver2row

udevadm

Mar 22nd, 2023
932
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.33 KB | None | 0 0
  1.  
  2. Udevadm info starts with the device specified by the devpath and then
  3. walks up the chain of parent devices. It prints for every device
  4. found, all possible attributes in the udev rules key format.
  5. A rule to match, can be composed by the attributes of the device
  6. and the attributes from one single parent device.
  7.  
  8.   looking at device '/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@300000/48302000.target-module/48302000.epwmss/48302200.pwm/pwm/pwmchip5/pwm1':
  9.     KERNEL=="pwm1"
  10.     SUBSYSTEM==""
  11.     DRIVER==""
  12.     ATTR{duty_cycle}=="0"
  13.     ATTR{enable}=="0"
  14.     ATTR{period}=="0"
  15.     ATTR{polarity}=="normal"
  16.     ATTR{power/async}=="disabled"
  17.     ATTR{power/control}=="auto"
  18.     ATTR{power/runtime_active_kids}=="0"
  19.     ATTR{power/runtime_active_time}=="0"
  20.     ATTR{power/runtime_enabled}=="disabled"
  21.     ATTR{power/runtime_status}=="unsupported"
  22.     ATTR{power/runtime_suspended_time}=="0"
  23.     ATTR{power/runtime_usage}=="0"
  24.  
  25.   looking at parent device '/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@300000/48302000.target-module/48302000.epwmss/48302200.pwm/pwm/pwmchip5':
  26.     KERNELS=="pwmchip5"
  27.     SUBSYSTEMS=="pwm"
  28.     DRIVERS==""
  29.     ATTRS{npwm}=="2"
  30.     ATTRS{power/async}=="disabled"
  31.     ATTRS{power/control}=="auto"
  32.     ATTRS{power/runtime_active_kids}=="0"
  33.     ATTRS{power/runtime_active_time}=="0"
  34.     ATTRS{power/runtime_enabled}=="disabled"
  35.     ATTRS{power/runtime_status}=="unsupported"
  36.     ATTRS{power/runtime_suspended_time}=="0"
  37.     ATTRS{power/runtime_usage}=="0"
  38.  
  39.   looking at parent device '/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@300000/48302000.target-module/48302000.epwmss/48302200.pwm':
  40.     KERNELS=="48302200.pwm"
  41.     SUBSYSTEMS=="platform"
  42.     DRIVERS=="ehrpwm"
  43.     ATTRS{driver_override}=="(null)"
  44.     ATTRS{power/async}=="disabled"
  45.     ATTRS{power/control}=="auto"
  46.     ATTRS{power/runtime_active_kids}=="0"
  47.     ATTRS{power/runtime_active_time}=="0"
  48.     ATTRS{power/runtime_enabled}=="enabled"
  49.     ATTRS{power/runtime_status}=="suspended"
  50.     ATTRS{power/runtime_suspended_time}=="332460"
  51.     ATTRS{power/runtime_usage}=="0"
  52.  
  53.   looking at parent device '/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@300000/48302000.target-module/48302000.epwmss':
  54.     KERNELS=="48302000.epwmss"
  55.     SUBSYSTEMS=="platform"
  56.     DRIVERS=="pwmss"
  57.     ATTRS{driver_override}=="(null)"
  58.     ATTRS{power/async}=="disabled"
  59.     ATTRS{power/control}=="auto"
  60.     ATTRS{power/runtime_active_kids}=="1"
  61.     ATTRS{power/runtime_active_time}=="297692"
  62.     ATTRS{power/runtime_enabled}=="enabled"
  63.     ATTRS{power/runtime_status}=="active"
  64.     ATTRS{power/runtime_suspended_time}=="35014"
  65.     ATTRS{power/runtime_usage}=="0"
  66.  
  67.   looking at parent device '/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@300000/48302000.target-module':
  68.     KERNELS=="48302000.target-module"
  69.     SUBSYSTEMS=="platform"
  70.     DRIVERS=="ti-sysc"
  71.     ATTRS{driver_override}=="(null)"
  72.     ATTRS{power/async}=="disabled"
  73.     ATTRS{power/control}=="auto"
  74.     ATTRS{power/runtime_active_kids}=="1"
  75.     ATTRS{power/runtime_active_time}=="297785"
  76.     ATTRS{power/runtime_enabled}=="enabled"
  77.     ATTRS{power/runtime_status}=="active"
  78.     ATTRS{power/runtime_suspended_time}=="34955"
  79.     ATTRS{power/runtime_usage}=="0"
  80.  
  81.   looking at parent device '/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@300000':
  82.     KERNELS=="48000000.interconnect:segment@300000"
  83.     SUBSYSTEMS=="platform"
  84.     DRIVERS==""
  85.     ATTRS{driver_override}=="(null)"
  86.     ATTRS{power/async}=="disabled"
  87.     ATTRS{power/control}=="auto"
  88.     ATTRS{power/runtime_active_kids}=="4"
  89.     ATTRS{power/runtime_active_time}=="0"
  90.     ATTRS{power/runtime_enabled}=="disabled"
  91.     ATTRS{power/runtime_status}=="unsupported"
  92.     ATTRS{power/runtime_suspended_time}=="0"
  93.     ATTRS{power/runtime_usage}=="0"
  94.  
  95.   looking at parent device '/devices/platform/ocp/48000000.interconnect':
  96.     KERNELS=="48000000.interconnect"
  97.     SUBSYSTEMS=="platform"
  98.     DRIVERS==""
  99.     ATTRS{driver_override}=="(null)"
  100.     ATTRS{power/async}=="disabled"
  101.     ATTRS{power/control}=="auto"
  102.     ATTRS{power/runtime_active_kids}=="0"
  103.     ATTRS{power/runtime_active_time}=="0"
  104.     ATTRS{power/runtime_enabled}=="disabled"
  105.     ATTRS{power/runtime_status}=="unsupported"
  106.     ATTRS{power/runtime_suspended_time}=="0"
  107.     ATTRS{power/runtime_usage}=="0"
  108.  
  109.   looking at parent device '/devices/platform/ocp':
  110.     KERNELS=="ocp"
  111.     SUBSYSTEMS=="platform"
  112.     DRIVERS==""
  113.     ATTRS{driver_override}=="(null)"
  114.     ATTRS{power/async}=="disabled"
  115.     ATTRS{power/control}=="auto"
  116.     ATTRS{power/runtime_active_kids}=="9"
  117.     ATTRS{power/runtime_active_time}=="0"
  118.     ATTRS{power/runtime_enabled}=="disabled"
  119.     ATTRS{power/runtime_status}=="unsupported"
  120.     ATTRS{power/runtime_suspended_time}=="0"
  121.     ATTRS{power/runtime_usage}=="0"
  122.  
  123.   looking at parent device '/devices/platform':
  124.     KERNELS=="platform"
  125.     SUBSYSTEMS==""
  126.     DRIVERS==""
  127.     ATTRS{power/async}=="disabled"
  128.     ATTRS{power/control}=="auto"
  129.     ATTRS{power/runtime_active_kids}=="1"
  130.     ATTRS{power/runtime_active_time}=="0"
  131.     ATTRS{power/runtime_enabled}=="disabled"
  132.     ATTRS{power/runtime_status}=="unsupported"
  133.     ATTRS{power/runtime_suspended_time}=="0"
  134.     ATTRS{power/runtime_usage}=="0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement