summaryrefslogtreecommitdiff
path: root/bin/find_iommu_groups
diff options
context:
space:
mode:
authorCynthia Revström <me@cynthia.re>2020-04-26 13:08:12 +0200
committerCynthia Revström <me@cynthia.re>2020-04-26 13:08:12 +0200
commit1c26711cecfb7dd99f42844ab8227ff37f39c5b6 (patch)
tree125f2639d4ad09c0d3fb30c9e8d68a82963f4908 /bin/find_iommu_groups
parente6e0856f4e9b31000af309cdb33a5f84877f8c19 (diff)
some scripts
Diffstat (limited to 'bin/find_iommu_groups')
-rwxr-xr-xbin/find_iommu_groups8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/find_iommu_groups b/bin/find_iommu_groups
new file mode 100755
index 0000000..2dad4c6
--- /dev/null
+++ b/bin/find_iommu_groups
@@ -0,0 +1,8 @@
+#!/bin/bash
+shopt -s nullglob
+for g in /sys/kernel/iommu_groups/*; do
+ echo "IOMMU Group ${g##*/}:"
+ for d in $g/devices/*; do
+ echo -e "\t$(lspci -nns ${d##*/})"
+ done;
+done;