dma_fence_array_create(9)
๐ธ NAME ๐ธ
okay so bestie, this is dma_fence_array_create(9) from the Kernel API Manual โ and it's literally all about creating a custom fence array ๐
โจ
dma_fence_array_create - Create a custom fence array ๐
โจ SYNOPSIS โจ
the exact call, no cap:
struct dma_fence_array * dma_fence_array_create (int num_fences , struct
dma_fence **fences , u64 context , unsigned seqno );
๐ ARGUMENTS ๐
num_fences[in] โ number of fences to add in the array ๐งฎfences[in] โ array containing the fences ๐ฆcontext[in] โ fence context to use ๐ฏseqno[in] โ sequence number to use ๐ข
๐ DESCRIPTION ๐
so the glow-up is: allocate a dma_fence_array object and initialize the base fence with dma_fence_init โจ in case of error it returns NULL ๐ญ
the caller should allocate the fences array with num_fences size and fill it with the fences it wants to add to the object. ownership of this array is taken, and dma_fence_put is used on each fence on release ๐ซถ
and yes: if signal_on_any is true, the fence array signals if any fence in the array signals; otherwise it signals when all fences in the array signal ๐ periodt.
๐ SEE ALSO ๐
- Kernel file:
./drivers/dma-buf/dma-fence-array.c๐ dma_fence_array_alloc(9)dma_fence_array_init(9)dma_fence_match_context(9)
signed, sealed, slayed from the ./drivers/dma-buf source/version โ October 2026 โ for dma_fence_array_create(9) ๐๐โจ
๐ฆ 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