summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xiommu_group5
1 files changed, 5 insertions, 0 deletions
diff --git a/iommu_group b/iommu_group
new file mode 100755
index 0000000..9757a85
--- /dev/null
+++ b/iommu_group
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+echo $(dirname $0)
+
+for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU Group %s ' "$n"; lspci -nns "${d##*/}"; done;