dma_iova_unlink(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual β€” this one's a kernel-level page, section 9, and it's literally all about unlinking a range of IOVA space. no cap. let's get into it πŸŽ€


🌸 NAME 🌸

dma_iova_unlink β€” unlink a range of IOVA space ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void dma_iova_unlink (struct device *dev , struct dma_iova_state *state
, size_t offset , size_t size , enum dma_data_direction dir , unsigned
long attrs );

it returns void, so like… nothing comes back. it just does the thing πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • dev β€” the DMA device. your main character device, fr fr 🫢
  • state β€” the IOVA state. this is the vibe we're operating on.
  • offset β€” offset into the IOVA state to unlink. like, where in the state do we start πŸ‘€
  • size β€” size of the buffer. how much of it we're talking about.
  • dir β€” DMA direction. it's an enum dma_data_direction, so yk how it is.
  • attrs β€” attributes of mapping properties. the little extras πŸ”₯

✨ DESCRIPTION ✨

so what it does is: unlink a range of IOVA space for the given IOVA state. that's the whole thing. that's the assignment. it ate and left no crumbs 🌈

lowkey important: it's scoped to the given IOVA state β€” that's the state arg doing the heavy lifting πŸ’œ

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/iommu/dma-iommu.c β€” go read it, iykyk 🧚, plus these iconic little friends:


and that's the page, bestie! πŸ“

signed, sealed, delivered: this one came out of ./drivers/iommu, stamped October 2026, and it's officially dma_iova_unlink(9). slay πŸ’…βœ¨

πŸ“¦ where this page comes from