dma_fence_chain_for_each(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

dma_fence_chain_for_each β€” iterate over all fences in chain πŸ’«

okay so this is from the Kernel API Manual, and it's literally the group-chat-approved way to loop over every fence in a chain. slay.


✨ SYNOPSIS ✨

dma_fence_chain_for_each (iter , head );

🫢 ARGUMENTS 🫢

  • iter β€” current fence πŸ‘€
  • head β€” starting point 🚩

πŸ’… DESCRIPTION πŸ’…

okay bestie, listen: this iterates over all the fences in the chain. while you're inside the loop, it keeps a reference to the current fence β€” and you must drop that reference when you break out. no cap, don't just dip and leave it hanging 😭

for a deep dive iterator, see dma_fence_unwrap_for_each πŸ”βœ¨


🌈 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_free(9) πŸ¦‹


sign-off era: source/version is ./include/linux, dated October 2026 β€” periodt, that's the whole page, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from