Skip to content

Instantly share code, notes, and snippets.

@frezbo
Forked from jabbas/ls-iommu.sh
Created August 28, 2017 05:38
Show Gist options
  • Save frezbo/6751f291d3986722b9274356abe5595c to your computer and use it in GitHub Desktop.
Save frezbo/6751f291d3986722b9274356abe5595c 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