vmw_context_bind_dx_query(9)
π NAME π
vmw_context_bind_dx_query β okay so this is the girl that sets the query MOB for the context π. And bestie, listen: if mob is NULL, she doesn't just sit there β she removes the association between the MOB and the context. Not me writing the breakup arc for a buffer object π. Also, tiny but important: this function assumes the binding_mutex is held. Like, that's the prerequisite, she's not locking it for you, iykyk πβ¨
β¨ SYNOPSIS β¨
int vmw_context_bind_dx_query (struct vmw_resource *ctx_res , struct
vmw_bo *mob );
π ARGUMENTS π
ctx_resβ the context resource, the main character in this whole situation πmobβ a reference to the query MOB π«Ά
π¦ DESCRIPTION π¦
So here's the vibe check: she returns -EINVAL if a MOB has already been set and it does not match the one you passed in the parameter π (like, conflicting commitments? not on her watch). Otherwise β 0. Slay, we love a clean return πβ¨
πΈ SEE ALSO πΈ
- Kernel file
./drivers/gpu/drm/vmwgfx/vmwgfx_context.c vmw_dx_context_scrub_cotables(9)vmw_context_binding_list(9)vmw_context_binding_state(9)vmw_context_get_dx_query_mob(9)
Go read those too, they're all in the same friend group fr fr π«Ά
Heads up bestie: binding_mutex must already be held when you call this. That's not optional, that's the whole assignment π€
And that's the page, periodt π β brought to you by the fine folks over at ./drivers/gpu/drm/vmwgfx, dated October 2026, living in the Kernel API Manual as vmw_context_bind_dx_query(9) πβ¨
π¦ 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