iommufd_vfi..._ioas_create(9)
β¨ iommufd_vfi..._ioas_create(9) β¨
okay so this is a page from the Kernel API Manual, and bestie, it's a short one but it's lowkey important β welcome to the group chat π«Ά
π NAME π
iommufd_vfio_compat_ioas_create β bestie, this one's whole job is making sure the compat IOAS actually gets created β¨
π SYNOPSIS π
int iommufd_vfio_compat_ioas_create (struct iommufd_ctx *ictx );
like, that's literally the whole signature. she's compact π
π¦ ARGUMENTS π¦
ictxβ the context you're operating on. that's it, that's the argument, she's not complicated π
πΈ DESCRIPTION πΈ
okay so picture this: the compatibility IOAS is the IOAS that the vfio compatibility ioctls operate on β and the reason they need a special one is that those ioctls just don't have an IOAS ID input in their ABI. like, the slot for it isn't even there in the struct. so instead of you telling it which IOAS, it just... has to have one ready for you π
now here's the vibe check: only attaching a group should cause a default creation of the internal ioas. that's the trigger, that's the main character moment, nothing else does it β¨
and this function? it does nothing if an existing ioas has already been assigned somehow β like, she checks, sees one's already there, and goes "k slay, ur already sorted π " and leaves it alone. no duplicating, no overwriting, no drama. periodt.
π SEE ALSO π
- Kernel file
./drivers/iommu/iommufd/vfio_compat.cβ go read the source bestie, it's right there π iommufd_vfio_compat_ioas_get_id(9)β the one that hands you the ID πiommufd_vfio_compat_set_no_iommu(9)β the one for when there's no iommu in the picture π«
and that's the whole page!! short and sweet, just the way we like it π
this came from ./drivers/iommu/iommufd and it's dated October 2026 β so mark your calendars, note the source, and stan a tidy little kernel function that knows when to do nothing πβ¨ππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms