Skip to content

Instantly share code, notes, and snippets.

@Pastitas
Created December 5, 2019 23:51
Show Gist options
  • Save Pastitas/dc73b1bdc0ee3db359ba1fd2aa2e10fc to your computer and use it in GitHub Desktop.
Save Pastitas/dc73b1bdc0ee3db359ba1fd2aa2e10fc to your computer and use it in GitHub Desktop.
#/bin/bash
for d in /sys/kernel/iommu_groups/*/devices/*; do =${d#*/iommu_groups/*};
n=${n%%/*}; printf 'IOMMU Group %s ' "$n"; lspci -nns "${d##*/}"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment