dma_fence_array_init(9)
π dma_fence_array_init(9) β Kernel API Manual, bestie edition β¨
okay so this is dma_fence_array_init, from the Kernel API Manual, and it's literally the glow-up helper for preallocated fence arrays π no cap.
β¨ NAME β¨
dma_fence_array_init β Init a custom fence array π¦
πΈ SYNOPSIS πΈ
void dma_fence_array_init (struct dma_fence_array *array , int
num_fences , struct dma_fence **fences , u64 context , unsigned seqno );
it's giving void, it takes five args, and yes bestie it is exactly that signature, copy it verbatim, do not freestyle π
π ARGUMENTS π
array[in]β the dma fence array you're arming up π this is the main character.num_fences[in]β how many fences you're adding into the array, count them fr fr π₯fences[in]β the array that contains the fences πcontext[in]β the fence context to use,u64, keep it πseqno[in]β the sequence number to use,unsigned, slay π
π§ DESCRIPTION π§
okay so here's the tea β: this is the implementation of dma_fence_array_create without allocation. literally the same energy, zero malloc drama π
it's useful to init a preallocated dma fence array, specifically when you're in the path of reclaim or dma fence signaling. so like, when you can't go allocating stuff, this is your girl π«Ά
lowkey important: no allocation happens here. that's the whole point. that's the vibe check it passes β¨
π¦ SEE ALSO π¦
- kernel file
./drivers/dma-buf/dma-fence-array.cπ dma_fence_array_alloc(9)dma_fence_array_create(9)dma_fence_match_context(9)
go read those next, iykyk π
and that's the whole page, bestie β¨ this cutie lives in ./drivers/dma-buf, it's dated October 2026, and it's page dma_fence_array_init(9) of the Kernel API Manual β go forth and arm those preallocated arrays, periodt π
ππΈ
π¦ 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