diff options
Diffstat (limited to 'scripts/desktop/iommu-groups')
| -rwxr-xr-x | scripts/desktop/iommu-groups | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/desktop/iommu-groups b/scripts/desktop/iommu-groups new file mode 100755 index 0000000..56cfd85 --- /dev/null +++ b/scripts/desktop/iommu-groups @@ -0,0 +1,7 @@ +#! /usr/bin/env bash +# This was copied from somewhere a while ago, forgot to put the link. +for d in /sys/kernel/iommu_groups/*/devices/*; do + n=${d#*/iommu_groups/*}; n=${n%%/*} + printf 'IOMMU Group %s ' "$n" + lspci -nns "${d##*/}" +done |