dma_resv_replace_fences(9)
π dma_resv_replace_fences(9) β like, the whole glow-up
okay so bestie, welcome to the Kernel API Manual entry for dma_resv_replace_fences(9) β yes the function name is literally the same as the page name, that's just how kernel docs roll, iykyk π
β¨ NAME β¨
dma_resv_replace_fences β swap out fences inside the dma_resv obj, no big deal π
πΈ SYNOPSIS πΈ
void dma_resv_replace_fences (struct dma_resv *obj , uint64_t context ,
struct dma_fence *replacement , enum dma_resv_usage usage );
like, she returns void, she takes four things, she does the thing. periodt. π¦
π ARGUMENTS π
objβ the reservation object. the main character of this whole situation fr.contextβ the context of the fences you wanna replace. like, which ones are getting swapped out πreplacementβ the new fence to use instead. the understudy. the glow-up. the swap πusageβ how the new fence is used β go peepenum dma_resv_usagefor the deets.
π₯ DESCRIPTION π₯
so what she does: she replaces fences that have a specified context with a new fence. simple, clean, iconic. β¨
β οΈ but bestie, listen β this is only valid if the operation represented by the original fence no longer has access to the resources represented by the dma_resv object when the new fence completes. read that twice. no cap. π
and an example (the manpage says "And example", which, mood, we're keeping it) for using this is replacing a preemption fence with a page table update fence which makes the resource inaccessible. see? the old one loses access, the new one takes over. main character energy π₯π
π«Ά SEE ALSO π«Ά
- Kernel file
./drivers/dma-buf/dma-resv.cβ and also theReservation Object Overview(9)page, go read it π§ 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_iter_first_unlocked(9)dma_resv_iter_next_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)
like, the whole reservation-object friend group, honestly. go say hi π
and that's the page!! this lil slice of docs lives in ./drivers/dma-buf and it's stamped October 2026, page name dma_resv_replace_fences(9). mwah, slay, bye 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