grimm-nixos-laptop/common/hardware/lsiommu
2024-05-02 14:02:35 +02:00

6 lines
180 B
Plaintext
Executable File

for d in $(find /sys/kernel/iommu_groups/ -type l | sort -n -k5 -t/); do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done;