Created
July 9, 2022 19:53
-
-
Save gak4u/830511680d305f8f58bfc08c10b6a877 to your computer and use it in GitHub Desktop.
iommu.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# change the 999 if needed | |
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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment