Find the devices of an iommu group

John Vardas picture John Vardas · Oct 5, 2016 · Viewed 12.3k times · Source

I am using the IOMMU API for linux and I would like to get a specific device that belongs to a specific group of a known group ID.

The iommu_group structure has a field for the device list but it is not accessible. Is there a way to get it?

Answer

Rami Rosen picture Rami Rosen · Feb 2, 2017

Please try:

find /sys/kernel/iommu_groups/ -type l

Rami Rosen