citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

iommu (193B)


      1 #!/usr/bin/env bash
      2 
      3 shopt -s nullglob
      4 for d in /sys/kernel/iommu_groups/*/devices/*
      5 do
      6     n=${d#*/iommu_groups/*}; n=${n%%/*}
      7     printf 'IOMMU Group %s ' "$n"
      8     lspci -nns "${d##*/}"
      9 done