Add print-iommu-groups script

main
Ian Mancini 4 years ago
parent 7634b0c12f
commit afb609813d

@ -0,0 +1,7 @@
#!/bin/bash
shopt -s nullglob
for d in /sys/kernel/iommu_groups/{0..999}/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done
Loading…
Cancel
Save