iommu_attach_group_handle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the iommu_attach_group_handle(9) page from the Kernel API Manual πŸ’–βœ¨ this one is all about attaching an IOMMU domain to an IOMMU group, and it’s lowkey iconic for fault delivery. let’s get into it.

🌸 NAME 🌸

iommu_attach_group_handle β€” Attach an IOMMU domain to an IOMMU group πŸ’…

✨ SYNOPSIS ✨

the whole vibe:

int iommu_attach_group_handle (struct iommu_domain *domain , struct
iommu_group *group , struct iommu_attach_handle *handle );

πŸŽ€ ARGUMENTS πŸŽ€

  • domain β€” the IOMMU domain you’re attaching, periodt.
  • group β€” the IOMMU group that will be attached, no cap.
  • handle β€” the attach handle. keep it new, bestie, we’ll get to that.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so first thing: this returns 0 on success and error code on failure. that’s the whole mood βœ…

this is a variant of iommu_attach_group. it lets the caller provide an attach handle and use it when the domain is attached. this is currently used by IOMMUFD to deliver the I/O page faults πŸ’…

caller should always provide a new handle to avoid race with the paths that have lockless reference to handle. not me stressing this, but bestie please listen: new handle, always. this is a real race-avoidance warning, fr fr ⚠️

🌈 SEE ALSO 🌈

Kernel file: ./drivers/iommu/iommu.c

the whole friend group:


okay that’s the page, bestie! this lil manual page comes from the source/version ./drivers/iommu, dated October 2026. slay, go attach responsibly πŸ’–πŸŽ€

πŸ“¦ where this page comes from