dma_fence_chain_free(9)
π dma_fence_chain_free(9) π
okay bestie, this page comes straight from the Kernel API Manual and it's lowkey a cleanup function for a dma_fence_chain that was allocated but never used. no cap π.
β¨ NAME β¨
dma_fence_chain_free β frees an allocated but not used &struct dma_fence_chain object.
π SYNOPSIS π
void dma_fence_chain_free (struct dma_fence_chain *chain );
π«Ά ARGUMENTS π«Ά
chainβ the chain node to free. that's the whole vibe, fr fr.
π DESCRIPTION π
Frees up an allocated but not used struct dma_fence_chain object. It's giving "cleanup only, no live fence energy" β¨.
This one does not need an RCU grace period, because the fence was never initialized and never published. so no waiting around for RCU, bestie β it was never out there in the world π.
β οΈ oncedma_fence_chain_inithas been called, that fence must be released by callingdma_fence_put, and not through this function. like, do not usedma_fence_chain_freefor a fence that's been initialized. periodt π .
π₯ SEE ALSO π₯
- Kernel file
./include/linux/dma-fence-chain.h struct dma_fence_chain(9)to_dma_fence_chain(9)dma_fence_chain_contained(9)dma_fence_chain_alloc(9)dma_fence_chain_for_each(9)
xoxo bestie β source/version ./include/linux, date October 2026 π
π¦ 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