Files
dotfiles/profiles/base/.local/bin/iommu_groups
2026-02-13 04:20:30 +01:00

9 lines
232 B
Bash
Executable File

#!/bin/bash
shopt -s nullglob
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;
done;