dma_resv_iter_next_unlocked(9)
β¨ dma_resv_iter_next_unlocked(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a function page, and yes it's a whole vibe.
π NAME π
dma_resv_iter_next_unlocked β get the next fence in an unlocked dma_resv obj. literally that's the whole thing, no cap π
πΈ SYNOPSIS πΈ
struct dma_fence * dma_resv_iter_next_unlocked (struct dma_resv_iter
*cursor );
look at that signature bestie, it's giving "one pointer in, one pointer out" π¦
β ARGUMENTS β
cursorβ the cursor you're holding, like, the one that's currently sitting at the current position π that's it, that's the arg.
π₯ DESCRIPTION π₯
okay so this returns the next fence from an unlocked dma_resv obj. simple, right? but listen π
β οΈ Beware β the iterator can be restarted. so if your code is out here accumulating statistics or doing anything ~similar~, you have to check for that with dma_resv_iter_is_restarted. no cap, don't sleep on this one π
and for that exact reason, the manpage is like: prefer the locked dma_resv_iter_next whenever possible. like, whenever. it's right there. use it. π
so yeah β next fence from an unlocked dma_resv obj, but mind the restart, bestie π«Ά
π 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_first(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)
all of these are your new besties, go say hi π
that's the whole page, bestie β sourced straight from ./drivers/dma-buf, dated October 2026, and filed under dma_resv_iter_next_unlocked(9). slay, go read the locked version, mwah π πβ¨
π¦ 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