mirror of https://github.com/Chizi123/Scripts.git

Joel Grunbaum
2020-03-29 4f26415ff44d1f4d731b6def4fc65d1eb4dc38f9
1
2
3
4
5
6
7
8
#!/bin/bash
shopt -s nullglob
for g in /sys/kernel/iommu_groups/*; do
    echo "IOMMU Group ${g##*/}:"
    for d in $g/devices/*; do
        echo -e "\t$(lspci -nns ${d##*/})"
    done;
done;