dma_fence_remove_callback(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dma_fence_remove_callback β€” the kernel API manual, bestie edition ✨

okay so this is the page for dma_fence_remove_callback(9) β€” it lives in the Kernel API Manual and it's all about ✨un-queueing✨ a callback, no cap.


πŸŽ€ NAME πŸŽ€

dma_fence_remove_callback β€” remove a callback from the signaling list. literally that's it, that's the whole gig 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

bool dma_fence_remove_callback (struct dma_fence *fence , struct
dma_fence_cb *cb );

it returns a bool, bestie β€” remember that, it matters later πŸ‘€


🌸 ARGUMENTS 🌸

  • fence β€” the fence to wait on 🚧
  • cb β€” the callback to remove πŸ—‘οΈ

πŸ’– DESCRIPTION πŸ’–

so what this does: it removes a callback that you previously queued up from the fence. that's the vibe. 🌈

it returns true if the callback is successfully removed, or false if the fence has already been signaled. two outcomes, no in-between, periodt. ✨

⚠️ WARNING ⚠️: cancelling a callback should only be done if you really know what you're doing, because deadlocks and race conditions could occur all too easily. not me stressing 😭 for this reason, it should only ever be done on hardware lockup recovery, with a reference held to the fence. that's the rule, iykyk πŸ’…

also: behaviour is undefined if cb has not been added to fence using dma_fence_add_callback beforehand. undefined behaviour is not cute, bestie, please don't πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

pretty sure you'll wanna peek at these too, fr fr:

Kernel file ./drivers/dma-buf/dma-fence.c


and that's the whole page, bestie!! πŸ§šπŸ’œ this one's sourced from ./drivers/dma-buf, dated October 2026, and yeah β€” the title dma_fence_remove_callback(9) is right there at the top and the bottom of the original, we been knew πŸ’… slay, go cancel some callbacks responsibly (or don't, see the warning above 😭) πŸ“β­πŸ”₯

πŸ“¦ where this page comes from