summaryrefslogtreecommitdiff
path: root/scripts/desktop/iommu-groups
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-10-17 12:22:00 -0400
committerAndrew Opalach <andrew@akon.city> 2025-10-17 12:32:42 -0400
commit544da1ba50d9cbf51a18ca0abf1db66b3baa7460 (patch)
tree1caa87664ea4937c5f4e6e8dc83c49b3132ddd70 /scripts/desktop/iommu-groups
parent85a47287e56ba9100420246531ebea5996cc0486 (diff)
downloaddotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.tar.gz
dotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.tar.bz2
dotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.zip
Gentoo desktop
Diffstat (limited to 'scripts/desktop/iommu-groups')
-rwxr-xr-xscripts/desktop/iommu-groups7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/desktop/iommu-groups b/scripts/desktop/iommu-groups
new file mode 100755
index 0000000..56cfd85
--- /dev/null
+++ b/scripts/desktop/iommu-groups
@@ -0,0 +1,7 @@
+#! /usr/bin/env bash
+# This was copied from somewhere a while ago, forgot to put the link.
+for d in /sys/kernel/iommu_groups/*/devices/*; do
+ n=${d#*/iommu_groups/*}; n=${n%%/*}
+ printf 'IOMMU Group %s ' "$n"
+ lspci -nns "${d##*/}"
+done