Skip to content

Instantly share code, notes, and snippets.

@grav
Created July 17, 2019 19:19
Show Gist options
  • Select an option

  • Save grav/b4e521983dbb814fdd5316334ef18de3 to your computer and use it in GitHub Desktop.

Select an option

Save grav/b4e521983dbb814fdd5316334ef18de3 to your computer and use it in GitHub Desktop.
#!/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