executable_iommu.sh 230 B

123456789
  1. #!/bin/bash
  2. shopt -s nullglob
  3. for g in $(find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V); do
  4. echo "IOMMU Group ${g##*/}:"
  5. for d in $g/devices/*; do
  6. echo -e "\t$(lspci -nns ${d##*/})"
  7. done;
  8. done;