dma_resv_iter_first(9)
β¨ 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 π
- Kernel file
./drivers/dma-buf/dma-resv.cπ Reservation Object Overview(9)dma_resv_init(9)dma_resv_fini(9)dma_resv_reserve_fences(9)dma_resv_reset_max_fences(9)dma_resv_add_fence(9)dma_resv_replace_fences(9)dma_resv_iter_first_unlocked(9)dma_resv_iter_next_unlocked(9)dma_resv_iter_next(9)dma_resv_copy_fences(9)dma_resv_get_fences(9)dma_resv_get_singleton(9)dma_resv_wait_timeout(9)dma_resv_set_deadline(9)dma_resv_test_signaled(9)dma_resv_describe(9)
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
- 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