dma_fence_chain_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈.

⚠️ once dma_fence_chain_init has been called, that fence must be released by calling dma_fence_put, and not through this function. like, do not use dma_fence_chain_free for a fence that's been initialized. periodt πŸ’….

πŸ”₯ SEE ALSO πŸ”₯

xoxo bestie β€” source/version ./include/linux, date October 2026 πŸŽ€

πŸ“¦ where this page comes from