dma_fence_remove_callback(9)
π 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
DMA fences overview(9)fence cross-driver contract(9)dma_fence_get_stub(9)dma_fence_allocate_private_stub(9)dma_fence_context_alloc(9)fence signalling annotation(9)dma_fence_begin_signalling(9)dma_fence_end_signalling(9)dma_fence_signal_timestamp_locked(9)dma_fence_signal_timestamp(9)dma_fence_signal_locked(9)dma_fence_check_and_signal_locked(9)dma_fence_check_and_signal(9)dma_fence_signal(9)dma_fence_wait_timeout(9)dma_fence_release(9)dma_fence_free(9)dma_fence_enable_signaling(9)dma_fence_add_callback(9)dma_fence_get_status(9)dma_fence_default_wait(9)dma_fence_wait_any_timeout(9)deadline hints(9)dma_fence_set_deadline(9)dma_fence_describe(9)dma_fence_init(9)dma_fence_init64(9)dma_fence_driver_name(9)dma_fence_timeline_name(9)
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
- 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