diff options
| author | Xian Wang <dev@xianwang.io> | 2022-09-28 18:12:04 -0700 |
|---|---|---|
| committer | Xian Wang <dev@xianwang.io> | 2022-09-28 18:12:04 -0700 |
| commit | 1fd5ee24b1128c9a0ad88becced6895eb864a082 (patch) | |
| tree | 55b7594efd52cb662ecc88bb129acd1c4004545a | |
| parent | 300259680e50bc4b08bc5f3c897dbcfe6a4a518d (diff) | |
| download | toolbox-1fd5ee24b1128c9a0ad88becced6895eb864a082.tar.gz toolbox-1fd5ee24b1128c9a0ad88becced6895eb864a082.tar.bz2 toolbox-1fd5ee24b1128c9a0ad88becced6895eb864a082.zip | |
iommu_group: add helper to enumerate iommu_group
Signed-off-by: Xian Wang <dev@xianwang.io>
| -rwxr-xr-x | iommu_group | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/iommu_group b/iommu_group new file mode 100755 index 0000000..9757a85 --- /dev/null +++ b/iommu_group @@ -0,0 +1,5 @@ +#!/bin/sh + +echo $(dirname $0) + +for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU Group %s ' "$n"; lspci -nns "${d##*/}"; done; |
