Skip to content

Instantly share code, notes, and snippets.

@bsodmike
Forked from jabbas/ls-iommu.sh
Created August 26, 2017 22:01
Show Gist options
  • Save bsodmike/64209bbc7248b0f6548c26c3f38552ee to your computer and use it in GitHub Desktop.
Save bsodmike/64209bbc7248b0f6548c26c3f38552ee to your computer and use it in GitHub Desktop.
#!/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