dma_fence_array_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ¦‹

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