iommu_get_domain_for_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

iommu_get_domain_for_dev(9) β€” Kernel API Manual β€” bestie edition πŸ’–

πŸŽ€ NAME πŸŽ€

iommu_get_domain_for_dev β€” Return the DMA API domain pointer. That's the whole name section and it ate. πŸ’…

✨ SYNOPSIS ✨

struct iommu_domain * iommu_get_domain_for_dev (struct device *dev );

🫢 ARGUMENTS 🫢

  • dev β€” Device to query. Like, the device you're asking about, bestie. 🫢

πŸ’… DESCRIPTION πŸ’…

okay so here's the vibe: you can call this function from inside a driver that's bound to dev. The pointer it hands back is valid for the lifetime of the bound driver β€” so it's not a fleeting little vibe, it's got main character staying power. ✨

🚨 But listen: it should not be called by drivers with driver_managed_dma = true. That's the one caveat, no cap. If that's your driver, this function is not for you. πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/iommu/iommu.c β€” and here's the whole linked friend group, all of them, no skips:


okay that's the whole page bestie 🫢 this one's source/version is ./drivers/iommu, dated October 2026, and it's filed under iommu_get_domain_for_dev(9) β€” slay, bye! πŸ’…βœ¨

πŸ“¦ where this page comes from