dotfiles/.local/bin/iommu-groups.sh
2020-12-27 00:53:10 +01:00

10 lines
201 B
Bash
Executable file

#!/usr/bin/env 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;