to_dma_fence_chain(9)
π to_dma_fence_chain(9) β Kernel API Manual, but make it make sense
okay bestie, so this is a page from the Kernel API Manual and it's genuinely tiny, so let's get into it π
β¨ NAME β¨
to_dma_fence_chain β literally just casts a fence to a dma_fence_chain. that's the whole job. icon behavior, no notes π
πΈ SYNOPSIS πΈ
struct dma_fence_chain * to_dma_fence_chain (struct dma_fence *fence );
π¦ ARGUMENTS π¦
fenceβ the fence you wanna cast to adma_fence_arrayπ«Ά
ok so yes, the page really does saydma_fence_arraythere even though the function hands back adma_fence_chain. not me reading it three times π we're preserving it exactly as written, don't come for me.
π DESCRIPTION π
so here's the vibe check: it returns NULL if the fence is not a dma_fence_chain, or the dma_fence_chain otherwise. that's it. that's the function. short and slay β¨
like β it's giving "are you who you say you are?" but for fences. lowkey obsessed with how simple this is π₯
π SEE ALSO π
- Kernel file
./include/linux/dma-fence-chain.h struct dma_fence_chain(9)dma_fence_chain_contained(9)dma_fence_chain_alloc(9)dma_fence_chain_free(9)dma_fence_chain_for_each(9)
go read the whole friend group, fr fr π§
π the cute sign-off π
this lil page lives in ./include/linux and it's dated October 2026 β yes, future-dated, main character energy, we don't question it πβ bye bestie, go cast some fences ππ
π¦ 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