STRUCT DMA_FENCE_ARRAY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 thing
  • num_fences β€” number of fences in the array πŸ”’ we love a count
  • num_pending β€” fences in the array that are still pending ⏳ the "read at 4:47pm" of the struct, honestly
  • fences β€” array of the fences 🧚 literally the whole point of the struct, iconic
  • work β€” internal irq_work function ⚑ internal, so don't @ her
  • callbacks β€” array of callback helpers 🎁 little helper guys, love that for them

πŸ’œ SEE ALSO πŸ’œ

go check these out bestie, iykyk 🌈


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