2020-10-10 14:39:26 +02:00
|
|
|
#!/bin/bash
|
2020-10-12 07:15:20 +02:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2020-10-10 14:39:26 +02:00
|
|
|
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;
|
2020-10-12 07:15:20 +02:00
|
|
|
done;
|