1
0
Fork 0
dotfiles/files/bin/lsiommu

9 lines
188 B
Plaintext
Raw Normal View History

2018-04-11 19:52:53 +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;