dma_fence_s...stamp_locked(9)
π dma_fence_signal_timestamp_locked β the Kernel API Manual, but make it cute β¨
okay so bestie, buckle up β we're in the Kernel API Manual today and this one is genuinely iconic. it's dma_fence_signal_timestamp_locked(9) and it's giving "i'm the locked version of that other function you already know" π
πΈ NAME πΈ
dma_fence_signal_timestamp_locked β signal completion of a fence π
β¨ SYNOPSIS β¨
void dma_fence_signal_timestamp_locked (struct dma_fence *fence ,
ktime_t timestamp );
like, that's it. two args. no cap. π«Ά
π¦ ARGUMENTS π¦
fenceβ the fence you're signalling, bestie. the main character, fr fr.timestampβ the fence signal timestamp, and it lives in the kernel'sCLOCK_MONOTONICtime domain. don't forget the domain part, it matters π
π₯ DESCRIPTION π₯
okay so here's the vibe: you call this and it signals completion for software callbacks on a fence. what that actually does is unblock dma_fence_wait calls and run all the callbacks that were added with dma_fence_add_callback. so like, everybody waiting in the group chat finally gets the message. π¬
you can call it multiple times, but β and this is the key part β a fence can only go from the unsignaled state to the signaled state and not back. so it will only be effective the first time. periodt. the later calls are just there existing, doing nothing, lowkey ghosted. π»
it also sets the timestamp you pass in as the fence signal timestamp. β°
π¨ the big one: unlikedma_fence_signal_timestamp, this function must be called withdma_fence.lockheld. like, that's not optional. that's the whole reason_lockedis in the name, iykyk. π
π SEE ALSO π
- 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(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_remove_callback(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)
like, that's a whole friend group right there. go say hi. π«Άβ¨
aaaand that's the page!! π this one lives in ./drivers/dma-buf and it's dated October 2026 β so yeah, future vibes only. mwah, bye bestie, go hold that lock π
π
π¦ 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