Skip to content

Instantly share code, notes, and snippets.

@bskjon
Created September 1, 2023 23:49
Show Gist options
  • Save bskjon/d0eeca048642e683160e894bef376f87 to your computer and use it in GitHub Desktop.
Save bskjon/d0eeca048642e683160e894bef376f87 to your computer and use it in GitHub Desktop.
IOMMU
#!/bin/sh
shopt -s nullglob
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*; do
echo "\t$(lspci -nns ${d##*/})"
done;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment