configs/arch-config/scripts/pieces/iommu.sh
2020-12-09 21:33:03 +01:00

14 lines
220 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
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;
exit 0