dma_resv_for_each_fence(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

dma_resv_for_each_fence β€” fence iterator. this is the Kernel API Manual page for dma_resv_for_each_fence(9), and bestie, it’s giving β€œlock held, fences handled” energy πŸ’…

🌸 SYNOPSIS 🌸

dma_resv_for_each_fence (cursor , obj , usage , fence );

πŸŽ€ ARGUMENTS πŸŽ€

  • cursor β€” a struct dma_resv_iter pointer.
  • obj β€” a dma_resv object pointer.
  • usage β€” controls which fences to return.
  • fence β€” the current fence.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the vibe: you iterate over the fences in a struct dma_resv object while holding the dma_resv.lock. all_fences controls if the shared fences are returned as well. the cursor initialisation is part of the iterator, and the fence stays valid as long as the lock is held β€” so no extra reference to the fence is taken. periodt πŸ’…

🌈 SEE ALSO 🌈


mwah πŸ’‹ this page comes from ./include/linux and is dated October 2026 β€” Kernel API Manual representation, iykyk. bye bestie, go hold that lock and slay 🫢

πŸ“¦ where this page comes from