Browse Source

added iommu-discovery utility

master
Bryan Pedini 6 years ago
parent
commit
d5f20497d4
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      noos-noarch/home/bryanpedini/bin/iommu-discovery

+ 7
- 0
noos-noarch/home/bryanpedini/bin/iommu-discovery View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash

for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done;

Loading…
Cancel
Save