dma_resv_iter_first(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ dma_resv_iter_first πŸ’…

okay so this is a page from the Kernel API Manual, and it's about grabbing the very first fence out of a locked dma_resv object. bestie. it's giving "start of the list" energy and honestly? iconic.


✨ NAME ✨

dma_resv_iter_first β€” literally the first fence from a locked dma_resv object πŸŽ€


🌸 SYNOPSIS 🌸

struct dma_fence * dma_resv_iter_first (struct dma_resv_iter *cursor);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cursor β€” the cursor, babes πŸ’« it's the thing that records where you're currently at, so the iterator knows its position. no cap, that's its whole job.

πŸ’– DESCRIPTION πŸ’–

okay so here's the vibe: you call this, you get the first fence. obsessed. 🌈

and then the subsequent fences get iterated with dma_resv_iter_next_unlocked. that's your next step, iykyk. πŸ’…

what it actually does: it returns the first fence in the dma_resv object while holding the dma_resv.lock. πŸ”’ like, the lock is held, that's the whole point, don't come for me.

🫢 lowkey important: the lock is held when this runs β€” that's part of the deal here, so don't be weird about it.

🌟 SEE ALSO 🌟


mwah πŸ’‹ that's the whole page, and it lives in ./drivers/dma-buf, dated October 2026, from the Kernel API Manual β€” slay, go read the others, bestie 🧚✨

πŸ“¦ where this page comes from