dma_resv_iter_end(9)
π dma_resv_iter_end(9) β from the Kernel API Manual, bestie
okay so welcome to the Kernel API Manual, this is the page for dma_resv_iter_end and honestly it's a short one but it's lowkey important, so pay attention π
β¨ NAME β¨
dma_resv_iter_end β cleanup a dma_resv_iter object
like, you're done with your iterator, so now you tidy up. main character energy: leaving things cleaner than you found them π§Ήπ
β¨ SYNOPSIS β¨
void dma_resv_iter_end (struct dma_resv_iter *cursor );
no return value, she returns nothing, she just does the thing π«Ά
β¨ ARGUMENTS β¨
cursorβ thedma_resv_iterobject which should be cleaned up. like, this exact one. the iterator you're done with. not a different one, bestie, this one πΈ
β¨ DESCRIPTION β¨
Make sure that the reference to the fence in the cursor is properly dropped. π₯
that's it. that's the whole job. you call this and the fence ref inside your cursor gets dropped correctly instead of just... vibing there forever and leaking. we love a clean drop, no cap π
β¨
β¨ SEE ALSO β¨
so if you wanna go deeper (and you should, iykyk), the Kernel file is ./include/linux/dma-resv.h β that's the home base for all of this π
the whole friend group:
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_usage(9)dma_resv_iter_is_restarted(9)dma_resv_for_each_fence_unlocked(9)dma_resv_for_each_fence(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)
okay that's literally the entire squad, go read them, they ate π
fr fr though: begin it, use it, then end it. the reference to the fence gets dropped properly β that's the whole point, don't skip it π
and that's the page!! brought to you from ./include/linux, the Kernel API Manual version October 2026, filed under dma_resv_iter_end(9) β mwah, go forth and drop your refs responsibly ππ¦π
π¦ 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