From 84418d3ced5e208611a161937cf17331ba792737 Mon Sep 17 00:00:00 2001 From: Sohang Chopra Date: Fri, 21 Jun 2024 17:40:15 +0530 Subject: [PATCH] systool: add page (#13096) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna --- pages/linux/systool.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/linux/systool.md diff --git a/pages/linux/systool.md b/pages/linux/systool.md new file mode 100644 index 000000000..824f6fcdd --- /dev/null +++ b/pages/linux/systool.md @@ -0,0 +1,17 @@ +# systool + +> View system device information by bus, and classes. +> This command is part of the `sysfs` package. +> More information: . + +- List all attributes of devices of a bus (eg. `pci`, `usb`). View all buses using `ls /sys/bus`: + +`systool -b {{bus}} -v` + +- List all attributes of a class of devices (eg. `drm`, `block`). View all classes using `ls /sys/class`: + +`systool -c {{class}} -v` + +- Show only device drivers of a bus (eg. `pci`, `usb`): + +`systool -b {{bus}} -D`