dma_fence_get_status(9)
π dma_fence_get_status β the Kernel API Manual tea π«
okay bestie, so this one's dma_fence_get_status from section 9 (kernel API), and it's genuinely one of the more chill functions you'll meet π It's literally just "hey fence, u good?" and honestly? we love a low-effort icon.
β¨ NAME β¨
dma_fence_get_status β returns the status upon completion πΈ
like, the whole job. that's it. that's the function.
π SYNOPSIS π
int dma_fence_get_status (struct dma_fence *fence );
π¦ ARGUMENTS π¦
fenceβ thedma_fenceto query π that's the one you're asking about, bestie, the main character of this whole operation
π DESCRIPTION π
so here's the vibe: this is a little wrapper around dma_fence_get_status_locked, and its whole thing is returning the error status condition on a signaled fence. no cap. if you want the full lore, go read dma_fence_get_status_locked β it's got the details, this one's just the friendly front desk π
now the actual return values, and listen up because these matter fr fr:
- returns
0if the fence has not yet been signaled β³ (still cooking, bestie) - returns
1if the fence has been signaled without an error condition β¨ (it ate, no crumbs) - returns a negative error code if the fence has been completed in err π (it's giving tragedy, not in a fun way)
so like,0= not done,1= done and slaying, negative = done and something went wrong. the three moods, honestly π
π SEE ALSO π
okay this is the part where I introduce you to the whole friend group π«Ά they all live in the kernel file ./drivers/dma-buf/dma-fence.c β go say hi:
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_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)
seriously, that's the group chat. all of them. I'm not skipping a single one, that would be so rude π
and that's the page, bestie!! this lil gem lives under ./drivers/dma-buf, and it's dated October 2026 in the Kernel API Manual β so like, future-flavored documentation, iconic behavior β¨π
go forth and check ur fences π§β
π¦ 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