iommufd_ctx_has_group(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 physical iommu_group struct. 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 🫢:


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