1
0
Fork 0
dotfiles/files/.local/bin/lsiommu

9 lines
188 B
Plaintext
Raw Normal View History

2021-04-10 20:37:16 +00:00
#!/bin/bash
shopt -s nullglob
for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done;