dma_fence_get_status_locked(9)
π NAME π
okay so bestie, this is dma_fence_get_status_locked(9) from the Kernel API Manual, and its whole personality is: dma_fence_get_status_locked β returns the status upon completion. that's it, that's the name, and it's lowkey iconic β¨
π SYNOPSIS π
int dma_fence_get_status_locked (struct dma_fence *fence );
π§΅ ARGUMENTS π§΅
fenceβ thedma_fenceto query. literally the one thing you're asking about, no cap π
π DESCRIPTION π
okay so here's the tea, bestie. Drivers can supply an optional error status condition before they signal the fence (to indicate whether the fence was completed due to an error rather than success). The value of the status condition is only valid if the fence has been signaled, so dma_fence_get_status_locked first checks the signal state before reporting the error status. periodt π
Important vibe check: that status condition's value is only valid if the fence has been signaled β do not skip that part, bestie π
It returns 0 if the fence has not yet been signaled, 1 if the fence has been signaled without an error condition, or a negative error code if the fence has been completed in err. the way that's so clear and organized, we love to see it π«Ά
π SEE ALSO π
Kernel file ./include/linux/dma-fence.h is the home base π and here's the full squad, no one left behind:
struct dma_fence(9)struct dma_fence_cb(9)struct dma_fence_ops(9)dma_fence_was_initialized(9)dma_fence_put(9)dma_fence_get(9)dma_fence_get_rcu(9)dma_fence_get_rcu_safe(9)dma_fence_spinlock(9)dma_fence_lock_irqsave(9)dma_fence_unlock_irqrestore(9)dma_fence_assert_held(9)Safe external access to driver provided object members(9)dma_fence_is_signaled_locked(9)dma_fence_is_signaled(9)__dma_fence_is_later(9)dma_fence_is_later(9)dma_fence_is_later_or_same(9)dma_fence_later(9)dma_fence_set_error(9)dma_fence_timestamp(9)dma_fence_wait(9)dma_fence_is_array(9)dma_fence_is_chain(9)dma_fence_is_container(9)
mwah π this lil page lives under ./include/linux, is dated October 2026, and answers to dma_fence_get_status_locked(9). catch u later, bestie π«Άπ
π¦ 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