dma_fence_is...naled_locked(9)
π dma_fence_is_signaled_locked β Kernel API Manual β¨
okay bestie, welcome to the Kernel API Manual, this one's a dma_fence_is_signaled_locked(9) situation and honestly it's giving "tiny function, big responsibility" π
β¨ NAME β¨
dma_fence_is_signaled_locked β returns an indication if the fence is signaled yet. that's it, that's the whole job π
π¦ SYNOPSIS π¦
bool dma_fence_is_signaled_locked (struct dma_fence *fence );
πΈ ARGUMENTS πΈ
fenceβ the fence to check π like, the actual one you're wondering about
π DESCRIPTION π
Returns true if the fence was already signaled, false if not. simple as that, no cap β¨
π¨ okay this part is important so listen up: since this function doesn't enable signaling, it is not guaranteed to ever returntrueifdma_fence_add_callback,dma_fence_waitordma_fence_enable_sw_signalinghaven't been called before. so if you skipped those and you're sitting there like "why is it always false π" β that's why, bestie, that's the vibe check failing on purpose π
Also this function requires dma_fence.lock to be held. like, you literally have to be holding the lock, it's not optional, it's not a suggestion, holding it is the whole assignment ππ
See also dma_fence_is_signaled β that's the unlocked cousin, iykyk π«Ά
π₯ SEE ALSO π₯
Kernel file ./include/linux/dma-fence.h and the whole friend group:
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(9)__dma_fence_is_later(9)dma_fence_is_later(9)dma_fence_is_later_or_same(9)dma_fence_later(9)dma_fence_get_status_locked(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)
and that's the whole page, periodt π this cutie lives in ./include/linux, dated October 2026, and it's dma_fence_is...naled_locked(9) signing off β mwah ππ§ββοΈ
π¦ 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