dma_fence_chain_contained(9)
π dma_fence_chain_contained(9)
okay bestie so this is a page from the Kernel API Manual β dma_fence_chain_contained, section 9. it's short, it's sweet, it's giving β¨utility functionβ¨ and honestly? we love a no-drama helper. let's get into it π«Ά
β¨ SYNOPSIS β¨
struct dma_fence * dma_fence_chain_contained (struct dma_fence *fence );
that's it. that's the whole vibe. one arg in, one <cyan>struct dma_fence *</cyan> out. π
πΈ ARGUMENTS πΈ
fenceβ the fence you wanna test, bb. that's the one we're peeking at π
π¦ DESCRIPTION π¦
so here's the tea β β this function is lowkey a little detective π.
if the fence you hand it is a dma_fence_chain, then it returns the fence contained inside the chain object. like, it opens the box and hands you what's in the box π
but if it's not a chain, no worries, no transformation arc β it just returns the fence itself. same fence, no cap. πͺ
literally: chain in β contained fence out. anything else in β the same thing back out. iconic behavior, honestly π
β SEE ALSO β
go read these next, bestie, they're all in the kernel file ./include/linux/dma-fence-chain.h π:
struct dma_fence_chain(9)to_dma_fence_chain(9)dma_fence_chain_alloc(9)dma_fence_chain_free(9)dma_fence_chain_for_each(9)
that's the whole friend group right there, fr fr π
and that's the page! π§ source is the ./include/linux kernel file, dated October 2026 β thanks for coming to my ted talk, mwah πππ·
π¦ 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