From a778fa9fffe4d4ef3193ef177f7dd8513c5b2ecf Mon Sep 17 00:00:00 2001 From: Sohang Chopra Date: Fri, 21 Jun 2024 10:59:20 +0530 Subject: [PATCH 1/6] systool (linux): add page --- pages/linux/systool.md | 16 ++++++++++++++++ 1 file changed, 16 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 0000000000000..f8244f1087a75 --- /dev/null +++ b/pages/linux/systool.md @@ -0,0 +1,16 @@ +# systool + +> View system device information by bus, classes. It's a part of `sysfs` package. +> More information: https://github.com/linux-ras/sysfsutils + +- 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` \ No newline at end of file From 530df03fc178296b1da037857a2f4afe3b9c721d Mon Sep 17 00:00:00 2001 From: Sohang Chopra Date: Fri, 21 Jun 2024 11:28:51 +0530 Subject: [PATCH 2/6] add newline to end of file --- pages/linux/systool.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/systool.md b/pages/linux/systool.md index f8244f1087a75..ae3d1a75d33c8 100644 --- a/pages/linux/systool.md +++ b/pages/linux/systool.md @@ -13,4 +13,4 @@ - Show only device drivers of a bus (eg. `pci`, `usb`): -`systool -b {{bus}} -D` \ No newline at end of file +`systool -b {{bus}} -D` From e4c46f15f1fd8428bd0e84c8522c7a084d19b589 Mon Sep 17 00:00:00 2001 From: Sohang Chopra Date: Fri, 21 Jun 2024 11:31:10 +0530 Subject: [PATCH 3/6] add <> brackets around info link --- pages/linux/systool.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/systool.md b/pages/linux/systool.md index ae3d1a75d33c8..c96817a501fb0 100644 --- a/pages/linux/systool.md +++ b/pages/linux/systool.md @@ -1,7 +1,7 @@ # systool > View system device information by bus, classes. It's a part of `sysfs` package. -> More information: https://github.com/linux-ras/sysfsutils +> More information: - List all attributes of devices of a bus (eg. `pci`, `usb`). View all buses using `ls /sys/bus`: From 4b191f11bd7349b6e4c2a75482ca7a2a2695554d Mon Sep 17 00:00:00 2001 From: Sohang Chopra Date: Fri, 21 Jun 2024 11:33:35 +0530 Subject: [PATCH 4/6] add full stop on more info line --- pages/linux/systool.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/systool.md b/pages/linux/systool.md index c96817a501fb0..6cb0b3391068e 100644 --- a/pages/linux/systool.md +++ b/pages/linux/systool.md @@ -1,7 +1,7 @@ # systool > View system device information by bus, classes. It's a part of `sysfs` package. -> More information: +> More information: . - List all attributes of devices of a bus (eg. `pci`, `usb`). View all buses using `ls /sys/bus`: From 9d7ebb808b5e3039f4d7c18a26582792ba9cded9 Mon Sep 17 00:00:00 2001 From: Sohang Chopra Date: Fri, 21 Jun 2024 13:05:37 +0530 Subject: [PATCH 5/6] Improve description in pages/linux/systool.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/linux/systool.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/systool.md b/pages/linux/systool.md index 6cb0b3391068e..da9fef79242dc 100644 --- a/pages/linux/systool.md +++ b/pages/linux/systool.md @@ -1,6 +1,6 @@ # systool -> View system device information by bus, classes. It's a part of `sysfs` package. +> View system device information by bus, 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`: From f2e58198131ff523b5cd99c44ca3edac86eb8bb5 Mon Sep 17 00:00:00 2001 From: Sohang Chopra Date: Fri, 21 Jun 2024 15:39:46 +0530 Subject: [PATCH 6/6] Improve description Co-authored-by: K.B.Dharun Krishna --- pages/linux/systool.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/linux/systool.md b/pages/linux/systool.md index da9fef79242dc..824f6fcdd20ba 100644 --- a/pages/linux/systool.md +++ b/pages/linux/systool.md @@ -1,6 +1,7 @@ # systool -> View system device information by bus, classes. This command is part of the `sysfs` package. +> 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`: