Advertisement
Guest User

IOMMU Groups

a guest
Dec 2nd, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. #!/bin/bash
  2. shopt -s nullglob
  3. for d in /sys/kernel/iommu_groups/*/devices/*; do
  4.     n=${d#*/iommu_groups/*}; n=${n%%/*}
  5.     printf 'IOMMU Group %s ' "$n"
  6.     lspci -nns "${d##*/}"
  7. done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement