dotfiles/.config/fish/functions/check-iommu.fish

10 lines
235 B
Fish
Raw Normal View History

function check-iommu --description 'Check iommu groups'
for g in /sys/kernel/iommu_groups/*
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*
echo -e "\t$(lspci -nns ${d##*/})"
end
end
end