i915_vma_resource_hold(9)
π 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 aboolthat serves as a lockdep cooke, and bestie you do need to hand this same cookie over as an argument to the pairingi915_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 π₯
trueif holding was successful πfalseif not π
that's the whole vibe check, no in-between π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/i915/i915_vma_resource.c Introduction(9)i915_vma_resource_alloc(9)i915_vma_resource_free(9)i915_vma_resource_unhold(9)i915_vma_resource_unbind(9)__i915_vma_resource_init(9)i915_vma_resource_bind_dep_sync(9)i915_vma_resource_bind_dep_sync_all(9)i915_vma_resource_bind_dep_await(9)
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
- 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