mirror of
https://github.com/luchina-gabriel/OSX-PROXMOX.git
synced 2024-11-22 11:55:18 +01:00
20 lines
396 B
Bash
Executable File
20 lines
396 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Script: IOMMU-Groups.sh
|
|
# Goal: List PCI devices in IOMMU Groups
|
|
#
|
|
# Author: Gabriel Luchina
|
|
# https://luchina.com.br
|
|
# 20211118T0010
|
|
|
|
shopt -s nullglob
|
|
|
|
for group in `ls /sys/kernel/iommu_groups/ | sort -V`
|
|
do
|
|
echo "IOMMU Group ${group##*/}:"
|
|
for device in /sys/kernel/iommu_groups/$group/devices/*
|
|
do
|
|
echo -e "\t$(lspci -nns ${device##*/})"
|
|
done
|
|
done
|