1
0
Fork 0
dotfiles/files/.local/bin/lsiommu

9 lines
230 B
Plaintext
Raw Normal View History

2021-04-10 20:37:16 +00:00
#!/bin/bash
shopt -s nullglob
2023-10-02 03:34:08 +00:00
for g in $(find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V); do
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*; do
echo -e "\t$(lspci -nns ${d##*/})"
done;
2021-04-10 20:37:16 +00:00
done;