dma_fence_was_initialized(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dma_fence_was_initialized(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one's a tiny little function with a big "wait, was this thing even set up??" energy, and honestly it's such a mood. Let's get into it πŸŽ€


🌸 NAME 🌸

dma_fence_was_initialized β€” literally just: test if fence was initialized. that's the whole vibe check πŸ¦‹


✨ SYNOPSIS ✨

bool dma_fence_was_initialized (struct dma_fence *fence );

she takes one pointer and gives you back a bool, periodt πŸ’…


🫢 ARGUMENTS 🫢

  • fence β€” the fence to test. like, the one you're side-eyeing and going "hmm, were you ever actually initialized?" πŸ‘€

πŸ”₯ RETURN πŸ”₯

Returns True if fence was ever initialized, and false otherwise. iconic boolean behaviour, no notes πŸ’œ

⚠️ okay but listen β€” this only works correctly when the memory backing the fence structure is zero initialized on allocation. like, only then. if it's not zero-initialized, the answer you get is not the answer you want, and that's the whole caveat, no cap 😭

🌈 SEE ALSO 🌈

Kernel file ./include/linux/dma-fence.h β€” plus the whole extended fence friend group, all of whom are also (9) and all of whom you should absolutely go read next 🧚:

  • struct dma_fence(9)
  • struct dma_fence_cb(9)
  • struct dma_fence_ops(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_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 page!! mwah πŸ’‹ this one lives in ./include/linux, it's dated October 2026, and it goes by dma_fence_was_initialized(9) β€” go forth and check your fences, bestie, ily πŸ«ΆπŸ’–

πŸ“¦ where this page comes from