i915_vma_resource_hold(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i915_vma_resource_hold(9) β€” Kernel API Manual πŸŽ€

okay so real talk, this is a page from the Kernel API Manual and it's about i915_vma_resource_hold, and honestly? she's short but she's important. let's get into it bestie ✨


🌸 NAME 🌸

i915_vma_resource_hold β€” hold the signaling of the vma resource unbind fence. that's it, that's the whole vibe. she holds the signal. no cap. πŸ’…


✨ SYNOPSIS ✨

bool i915_vma_resource_hold (struct i915_vma_resource *vma_res , bool
*lockdep_cookie );

like, literally exactly that. don't @ me, that's the signature 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • vma_res β€” the vma resource itself. the main character of this whole situation πŸ‘‘
  • lockdep_cookie β€” a pointer to a bool that serves as a lockdep cooke, and bestie you do need to hand this same cookie over as an argument to the pairing i915_vma_resource_unhold. they're a matching set, don't separate them 😭 (and yes, the source really does spell it "cooke" β€” iconic, we love a typo that made it to production πŸ™ˆ)

πŸ’– DESCRIPTION πŸ’–

so here's the tea: if this function returns true, it has entered a dma_fence signalling critical section β€” unless it was already in one, in which case, she was already there, she's not doing it twice πŸ’€βœ¨


πŸ”₯ RETURN πŸ”₯

  • true if holding was successful πŸŽ‰
  • false if not πŸ™ƒ

that's the whole vibe check, no in-between 🌈


🌟 SEE ALSO 🌟

the whole friend group fr fr, go read them too πŸ«ΆπŸ’œ


ngl this one's tiny but she's doing important fence work, treat her with respect ⭐

and that's a wrap bestie!! this page lives in ./drivers/gpu/drm/i915, dated October 2026, and it's literally called i915_vma_resource_hold(9) β€” slay, go hold some fences πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from