iommufd_access_notify_unmap(9)
π iommufd_access_notify_unmap(9) π
okay bestie, welcome to the Kernel API Manual page for iommufd_access_notify_unmap(9) β this is the little notification that tells users of an iopt to stop using it, and honestly itβs giving βwrap it upβ energy πβ¨.
π¦ NAME π¦
iommufd_access_notify_unmap β notify users of an iopt to stop using it. periodt π
β¨ SYNOPSIS β¨
void iommufd_access_notify_unmap (struct io_pagetable *iopt , unsigned
long iova , unsigned long length );
π ARGUMENTS π
ioptβ theioptto work on, aka the main character of this operation π.iovaβ starting iova in theioptπΊοΈ.lengthβ number of bytes π.
π DESCRIPTION π
okay so after this function returns, there should be no users attached to the pages linked to this iopt that intersect with iova,length β like, zero, none, nobody π. Anyone that has attached a user through iopt_access_pages needs to detach it through iommufd_access_unpin_pages before this function returns. no cap, thatβs the whole vibe check π.
iommufd_access_destroy will wait for any outstanding unmap callback to complete π«Ά. After iommufd_access_destroy, no unmap ops are running or will run in the future.
β οΈ Due to this, a driver must not create locking that prevents unmap to complete while iommufd_access_destroy is running. Thatβs literally the caveat, donβt skip it π
.
π SEE ALSO π
Kernel file: ./drivers/iommu/iommufd/device.c β yes, thatβs the spot π«Ά.
iommufd_device_bind(9)iommufd_ctx_has_group(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_unpin_pages(9)iommufd_access_pin_pages(9)iommufd_access_rw(9)
xoxo, your kernel bestie β source ./drivers/iommu/iommufd, October 2026 ππ
π¦ 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