nixos-framework-laptop-config/iommu.sh

8 lines
237 B
Bash
Raw Permalink Normal View History

2024-12-30 05:03:36 -05:00
#!/usr/bin/env 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;