grimm-nixos-laptop/common/hardware/lsiommu

6 lines
180 B
Plaintext
Raw Permalink Normal View History

2024-04-26 21:36:24 +02:00
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;