Created
July 17, 2019 19:19
-
-
Save grav/b4e521983dbb814fdd5316334ef18de3 to your computer and use it in GitHub Desktop.
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 | |
| 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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment