dma_fence_get_status(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the dma_fence to 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 0 if the fence has not yet been signaled ⏳ (still cooking, bestie)
  • returns 1 if 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:

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