dma_resv_for_each_fence(9)
β¨ NAME β¨
dma_resv_for_each_fence β fence iterator. this is the Kernel API Manual page for dma_resv_for_each_fence(9), and bestie, itβs giving βlock held, fences handledβ energy π
πΈ SYNOPSIS πΈ
dma_resv_for_each_fence (cursor , obj , usage , fence );
π ARGUMENTS π
cursorβ astruct dma_resv_iterpointer.objβ adma_resvobject pointer.usageβ controls which fences to return.fenceβ the current fence.
π¦ DESCRIPTION π¦
okay so hereβs the vibe: you iterate over the fences in a struct dma_resv object while holding the dma_resv.lock. all_fences controls if the shared fences are returned as well. the cursor initialisation is part of the iterator, and the fence stays valid as long as the lock is held β so no extra reference to the fence is taken. periodt π
π SEE ALSO π
- Kernel file
./include/linux/dma-resv.hβenum dma_resv_usage(9) dma_resv_usage_rw(9)struct dma_resv(9)struct dma_resv_iter(9)dma_resv_iter_begin(9)dma_resv_iter_end(9)dma_resv_iter_usage(9)dma_resv_iter_is_restarted(9)dma_resv_for_each_fence_unlocked(9)dma_resv_lock(9)dma_resv_lock_interruptible(9)dma_resv_lock_slow(9)dma_resv_lock_slow_interruptible(9)dma_resv_trylock(9)dma_resv_is_locked(9)dma_resv_locking_ctx(9)dma_resv_unlock(9)
mwah π this page comes from ./include/linux and is dated October 2026 β Kernel API Manual representation, iykyk. bye bestie, go hold that lock and slay π«Ά
π¦ 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