Skip to content

Instantly share code, notes, and snippets.

View AustinSaintAubin's full-sized avatar

Austin St. Aubin AustinSaintAubin

View GitHub Profile
@AustinSaintAubin
AustinSaintAubin / iommu.sh
Last active May 17, 2025 21:55 — forked from r15ch13/iommu.sh
List IOMMU Groups and the connected USB Devices
#!/usr/bin/env bash
# https://chatgpt.com/c/6828dc89-e524-800e-b978-05b3f27626c9
# IOMMU and Device Enumeration Script
# Description: Enumerates IOMMU groups and lists associated PCI and USB devices
# in a neatly formatted, column-aligned table.
# Usage: Run as root or with permissions to read /sys/kernel/iommu_groups,
# and have lspci and lsusb available.
# Output: Columns: IOMMU group, Device ID (vendor:device), Flags (e.g., reset support or USB),
# Address or bus:device, Type (PCI/USB), Description.