dma_resv_iter_begin(9)
β¨ dma_resv_iter_begin(9) β¨
okay so bestie, welcome to the dma_resv_iter_begin(9) page from the Kernel API Manual π this one's short and sweet but it's literally the glow-up moment for your iterator, so pay attention π«Ά
πΈ NAME πΈ
dma_resv_iter_begin β initializes a dma_resv_iter object, no cap β¨
π SYNOPSIS π
void dma_resv_iter_begin (struct dma_resv_iter *cursor , struct dma_resv
*obj , enum dma_resv_usage usage );
it returns void, so likeβ¦ don't @ me looking for a return value, there isn't one π
π¦ ARGUMENTS π¦
cursorβ thedma_resv_iterobject we're about to initialize. this is your main character, the one getting set up πobjβ thedma_resvobject we want to iterate over. this is the thing you're walking through, one fence at a time πΆββοΈusageβ controls which fences get included in the iteration. it's anenum dma_resv_usage, so go check that enum if you need the deets, iykyk π
π₯ SEE ALSO π₯
everything below is fam, go say hi π also there's a kernel file involved, ./include/linux/dma-resv.h, so that's where the lore lives:
enum dma_resv_usage(9)dma_resv_usage_rw(9)struct dma_resv(9)struct dma_resv_iter(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_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)
like, that's the whole group chat, periodt π
ngl there's not a lot of drama on this page β no warnings, no exit statuses, no environment variables. it's just "initialize the iterator," slay, iconic, go read the other pages for the spicy parts π
k bye bestie, that's the whole page!! π§ this masterpiece lives in ./include/linux and it's dated October 2026 β mark your calendars, this is the version you're reading ππ
π¦ 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