9 lines
188 B
Plaintext
9 lines
188 B
Plaintext
|
#!/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;
|
||
|
|