iommufd_ctx_has_group(9)
π iommufd_ctx_has_group π
okay bestie, this is a page from the Kernel API Manual (that's the manual name, cute right?) and it's all about one tiny little boolean function that answers a very specific question. let's get into it π«Ά
β¨ NAME β¨
iommufd_ctx_has_group β returns true if any device within the group is bound to the ictx π
πΈ SYNOPSIS πΈ
bool iommufd_ctx_has_group (struct iommufd_ctx *ictx , struct iommu_group *group );
like, that's the whole thing. a bool. no cap. π
π¦ ARGUMENTS π¦
ictxβ the iommufd file descriptor. yes the fd, that's what we're checking against πgroupβ a pointer to a physicaliommu_groupstruct. just a pointer. that's it. that's the whole vibe π
β DESCRIPTION β
so here's the tea β β this returns true if any device within the group has been bound to this ictx, like for example via iommufd_device_bind. and because of that, it implies that the ictx has ownership of the group. iykyk. π
it's literally just a vibe check on "do you own this group or not" and honestly? iconic. β¨
π§ SEE ALSO π§
the kernel file lives at ./drivers/iommu/iommufd/device.c bestie, and here's the whole friend group π«Ά:
iommufd_device_bind(9)iommufd_device_unbind(9)iommufd_device_attach(9)iommufd_device_replace(9)iommufd_device_detach(9)iommufd_access_create(9)iommufd_access_destroy(9)iommufd_access_notify_unmap(9)iommufd_access_unpin_pages(9)iommufd_access_pin_pages(9)iommufd_access_rw(9)
okay that's the page!! π this one came out of ./drivers/iommu/iommufd, dated October 2026, and honestly the whole thing ate. mwah, go read the rest of the kernel docs, ily, bye ππ₯
π¦ 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