dma_fence_chain_get_prev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ dma_fence_chain_get_prev(9) ✨

okay so this is a page from the Kernel API Manual, and bestie, we are about to get so cozy with RCU refcounting πŸ’…


🌸 NAME 🌸

dma_fence_chain_get_prev β€” use RCU to get a reference to the previous fence πŸŽ€

like literally, that's the whole vibe: RCU in, reference out πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

struct dma_fence * dma_fence_chain_get_prev (struct dma_fence_chain
*chain );

yes queen, that's the whole signature, copy it exactly, no cap ✨


πŸ“ ARGUMENTS πŸ“

  • chain β€” the chain node you wanna get the previous node from 🫢 that's it, that's the one argument, she's lowkey carrying the whole function

🌈 DESCRIPTION 🌈

okay so here's the tea β˜• β€” this function uses dma_fence_get_rcu_safe to grab a reference to the previous fence of the chain node.

that's it. that's the entire description. she's short, she's iconic, she does exactly one thing and she does it under RCU πŸ‘‘

no extra lore bestie, i'm not gonna invent behaviour that isn't on the page β€” the manpage says it uses dma_fence_get_rcu_safe to get a reference to the previous fence of the chain node, and that is fr fr all we know πŸ’€

🧚 SEE ALSO 🧚

go read those next, they're the rest of the friend group, iykyk πŸ’œ


and that's the whole page bestie!! πŸŽ€ this cutie lives in the kernel source tree under ./drivers/dma-buf, the version said October 2026, and yes the title is dma_fence_chain_get_prev(9) in case you forgot already πŸ™ˆ slay, go get that previous fence reference ⭐πŸ”₯πŸ‘‘

πŸ“¦ where this page comes from