-
-
Save tekgnosis-net/8cfd5b85dd148c477396fbf65b0d515d to your computer and use it in GitHub Desktop.
A simple bash script to get the list of iommu groups & the devices in those iommu groups.
This file contains hidden or 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 | |
for d in /sys/kernel/iommu_groups/*/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