16 lines
300 B
Bash
16 lines
300 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# mafferri (https://bbs.archlinux.org)
|
||
|
|
||
|
BASE="/sys/kernel/iommu_groups"
|
||
|
|
||
|
for i in $(find $BASE -maxdepth 1 -mindepth 1 -type d); do
|
||
|
GROUP=$(basename $i)
|
||
|
echo "### Group $GROUP ###"
|
||
|
for j in $(find $i/devices -type l); do
|
||
|
DEV=$(basename $j)
|
||
|
echo -n " "
|
||
|
lspci -s $DEV
|
||
|
done
|
||
|
done
|