STRUCT DMA_FENCE_ARRAY(9)
πΈ struct dma_fence_array(9) πΈ
okay so bestie, welcome to the Kernel API Manual β¨ this one's about struct dma_fence_array β and yes it's exactly what it sounds like, a fence that's actually a whole squad of fences π
π NAME π
struct dma_fence_array β a fence that represents an array of fences π«Ά
Like, one fence to rule them all. Group chat energy, but make it kernel. π
β¨ SYNOPSIS β¨
struct dma_fence_array {
struct dma_fence base;
unsigned num_fences;
atomic_t num_pending;
struct dma_fence **fences;
struct irq_work work;
struct dma_fence_array_cb callbacks[];
};
not me dropping the whole struct definition, it's giving very much "here's the receipts" π every field, untouched, exactly as written. no cap. π¦
π Members π
okay so let's do the member-by-member vibe check, one by one, no skipping, we're not doing that π
baseβ the fence base class π± like, the foundational main-character energy of this thingnum_fencesβ number of fences in the array π’ we love a countnum_pendingβ fences in the array that are still pending β³ the "read at 4:47pm" of the struct, honestlyfencesβ array of the fences π§ literally the whole point of the struct, iconicworkβ internalirq_workfunction β‘ internal, so don't @ hercallbacksβ array of callback helpers π little helper guys, love that for them
π SEE ALSO π
go check these out bestie, iykyk π
- Kernel file
./include/linux/dma-fence-array.hstruct dma_fence_array_cb(9)to_dma_fence_array(9)dma_fence_array_for_each(9)
and that's the whole page, periodt π
this little slice of the kernel universe lives in ./include/linux, and it's dated October 2026 β so when you're deep in the kernel at some ungodly hour, remember: the fences are arrayed, the callbacks are helping, and you're doing amazing π«Άπβ¨
π¦ 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