pub-solar-os/overlays/pub-solar/iommu-test.nix

10 lines
166 B
Nix
Raw Normal View History

2021-05-30 19:10:28 +00:00
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;