iommu_iotlb_gather_add_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… iommu_iotlb_gather_add_page(9) πŸ’…

okay so bestie, welcome to the kernel API manual, this one's from the <pink>Kernel API Manual</pink> girlies and it's literally all about gathering up page-based TLB invalidation. stay with me, it's giving lowkey iconic ✨


🌸 NAME 🌸

iommu_iotlb_gather_add_page β€” gather for page-based TLB invalidation πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void iommu_iotlb_gather_add_page (struct iommu_domain *domain , struct
       iommu_iotlb_gather *gather , unsigned long iova , size_t size );

like, that's the whole signature bestie, no cap πŸ’–


πŸ’œ ARGUMENTS πŸ’œ

  • domain β€” the IOMMU domain that's getting invalidated, that's the main character here πŸ‘‘
  • gather β€” the TLB gather data, yes it's literally called gather, we love a self-descriptive name 🫢
  • iova β€” start of the page to invalidate πŸ“
  • size β€” size of the page to invalidate πŸ“

✨ DESCRIPTION ✨

so this is a helper for IOMMU drivers to build invalidation commands based on individual pages 🧚 β€” or, and this is the important bit, with page size/table level hints which cannot be gathered if they differ. like, if the hints differ, they can't be merged together, periodt πŸ’€ so the function sorts that out for you πŸ’…


🌈 SEE ALSO 🌈

Kernel file ./include/linux/iommu.h β€” and honestly the whole friend group showed up for this one:


and that's the whole page bestie, ate and left no crumbs πŸ’…βœ¨

shoutout to the ./include/linux girlies for hosting this one, dated October 2026, straight from the Kernel API Manual β€” mwah, see u in the next manpage πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from