dotfiles/.local/bin/iommu-groups.sh

10 lines
201 B
Bash
Raw Normal View History

2020-12-27 00:52:16 +01:00
#!/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;