dma_fence_chain_get_prev(9)
β¨ 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 π§
- kernel file
./drivers/dma-buf/dma-fence-chain.cπ dma_fence_chain_walk(9)dma_fence_chain_find_seqno(9)dma_fence_chain_init(9)
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
- 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