dma_iova_sync(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to dma_iova_sync(9) from the Kernel API Manual 🫢 this one is short but iconic, and we are gonna read it together, no cap ✨

πŸ’… NAME

dma_iova_sync β€” Sync IOTLB


✨ SYNOPSIS

int dma_iova_sync (struct device *dev , struct dma_iova_state *state ,
       size_t offset , size_t size );

πŸŽ€ ARGUMENTS

  • dev β€” DMA device. The device doing the DMA thing, basically the main character here πŸ’…
  • state β€” IOVA state. Yep, that state.
  • offset β€” offset into the IOVA state to sync. It tells you where in the state we're syncing from.
  • size β€” size of the buffer. How big the buffer is, periodt.

πŸ¦‹ DESCRIPTION

okay so the whole vibe: sync the IOTLB for the given IOVA state 🌈✨

This function should be called on the IOVA-contiguous range created by one ore more dma_iova_link calls, and its job is to sync the IOTLB. Yes, β€œore” is literally what it says, and yes I am preserving it fr fr πŸ’€πŸ™ˆ

bestie, the key detail is that β€œshould be called” on that IOVA-contiguous range from one ore more dma_iova_link calls β€” that is the whole instruction, no cap.

🌸 SEE ALSO

Kernel file ./drivers/iommu/dma-iommu.c β€” go peek, iykyk πŸ‘‘


mwah πŸ’‹ this lil page’s source/version is ./drivers/iommu, and it’s dated October 2026 β€” iconic, stamped, done πŸŽ€βœ¨

πŸ“¦ where this page comes from