diff options
author | Matthew Lemon <y@yulqen.org> | 2024-12-30 15:24:59 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-12-30 15:24:59 +0000 |
commit | 1d4f12f8d205110c1a9cf00728792c4c40f300d9 (patch) | |
tree | 8cdeb39610a5dbb4f8a4b42f2d72775c7357f848 | |
parent | dc02cbd4a982c2f80d3426f78dd13047b9e3c767 (diff) |
-rwxr-xr-x | iommu_detect.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/iommu_detect.sh b/iommu_detect.sh new file mode 100755 index 0000000..29b3068 --- /dev/null +++ b/iommu_detect.sh @@ -0,0 +1,11 @@ +#!/usr/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; + |