vmw_cbs_context(9)
π vmw_cbs_context β the kernel API manual, but make it make sense
okay so bestie, this one lives in the kernel API manual, and it's genuinely a little cutie: it's the function that tells you which context resource owns a context binding state tracker. one job. she does it. periodt.
β¨ NAME β¨
vmw_cbs_context β returns a pointer to the context resource of a context binding state tracker. that's the whole assignment, and she ate π
πΈ SYNOPSIS πΈ
const struct vmw_resource * vmw_cbs_context (const struct
vmw_ctx_binding_state *cbs );
π ARGUMENTS π
cbsβ the context binding state tracker. yeah, that's it, that's the whole input. she's low maintenance like that π«Ά
π¦ DESCRIPTION π¦
so here's the tea β β provided there are any active bindings, this function hands you back an unreferenced pointer to the context resource that owns the context binding state tracker cbs. basically: "who's your owner, bestie?" and it answers.
but if there are no active bindings? she returns NULL. nothing going on, nothing to point at. iconic minimalism tbh.
β οΈ okay this part is important, do not skip it π β the caller must somehow ensure that a reference is held on the context resource prior to calling this function. the pointer you get back is unreferenced, so you'd better already be holding a ref yourself. no refs, no rights, no cap π
π SEE ALSO π
alright buckle up, because this list is long and honestly kind of impressive π the kernel file is ./drivers/gpu/drm/vmwgfx/vmwgfx_binding.c, and she's friends with literally everyone:
struct vmw_ctx_binding_state(9)struct vmw_binding_info(9)vmw_binding_loc(9)vmw_binding_drop(9)vmw_binding_add(9)vmw_binding_cb_offset_update(9)vmw_binding_add_uav_index(9)vmw_binding_transfer(9)vmw_binding_state_kill(9)vmw_binding_state_scrub(9)vmw_binding_res_list_kill(9)vmw_binding_res_list_scrub(9)vmw_binding_state_commit(9)vmw_binding_rebind_all(9)vmw_binding_scrub_shader(9)vmw_binding_scrub_render_target(9)vmw_binding_scrub_texture(9)vmw_binding_scrub_dx_shader(9)vmw_binding_scrub_cb(9)vmw_collect_view_ids(9)vmw_collect_dirty_view_ids(9)vmw_emit_set_sr(9)vmw_emit_set_rt(9)vmw_collect_so_targets(9)vmw_emit_set_so_target(9)vmw_binding_emit_dirty_ps(9)vmw_collect_dirty_vbs(9)vmw_emit_set_vb(9)vmw_binding_emit_dirty(9)vmw_binding_scrub_sr(9)vmw_binding_scrub_dx_rt(9)vmw_binding_scrub_so_target(9)vmw_binding_scrub_vb(9)vmw_binding_scrub_ib(9)vmw_binding_scrub_so(9)vmw_binding_state_alloc(9)vmw_binding_state_free(9)vmw_binding_state_list(9)vmw_binding_state_reset(9)vmw_binding_dirtying(9)
like, okay, main character energy with a whole friend group π
and that's the page, bestie π huge thank you to ./drivers/gpu/drm/vmwgfx for hosting β this one's dated October 2026 β and shoutout to the kernel API manual for the slot. now go hold that reference before you call her, i'm literally begging ππ
π¦ 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