diff options
author | Andrew Lunn <[email protected]> | 2023-05-29 18:32:32 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-05-31 09:42:08 +0100 |
commit | 052c38eb17e866c5b4cd43924e7a5e20167b55c0 (patch) | |
tree | d402e50b609d13fd07d389ef56b5bbdb8ee03851 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | ed554d3f945179c5b159bddfad7be34b403fe11a (diff) |
leds: add API to get attached device for LED hw control
Some specific LED triggers blink the LED based on events from a device
or subsystem.
For example, an LED could be blinked to indicate a network device is
receiving packets, or a disk is reading blocks. To correctly enable and
request the hw control of the LED, the trigger has to check if the
network interface or block device configured via a /sys/class/led file
match the one the LED driver provide for hw control for.
Provide an API call to get the device which the LED blinks for.
Signed-off-by: Andrew Lunn <[email protected]>
Signed-off-by: Christian Marangi <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions