vmw_resource_check_buffer(9)
π NAME π
okay bestie, this is vmw_resource_check_buffer(9) from the Kernel API Manual β yes, the manual name is right there, weβre keeping it cute. This function checks whether a backup buffer is needed for a resource, and if it is, it allocates one, reserves it, and validates it. periodt. β¨
πΈ SYNOPSIS πΈ
int vmw_resource_check_buffer (struct ww_acquire_ctx *ticket , struct
vmw_resource *res , bool interruptible , struct ttm_validate_buffer
*val_buf );
π ARGUMENTS π
ticketβ the ww acquire context to use, orNULLif youβre trylocking. lowkey important.resβ the resource for which to allocate a backup buffer. main character resource energy.interruptibleβ whether any sleeps during allocation should be performed while interruptible. no cap, thatβs the whole vibe.val_bufβ on successful return, this contains data about the reserved and validated backup buffer. slay. π
π SEE ALSO π
bestie, the whole squad is here β Kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_resource.c and these iconic references:
vmw_resource_mob_attach(9)vmw_resource_mob_detach(9)vmw_resource_release_id(9)vmw_resource_alloc_id(9)vmw_resource_init(9)vmw_user_resource_lookup_handle(9)vmw_resource_buf_alloc(9)vmw_resource_do_validate(9)vmw_resource_unreserve(9)vmw_resource_backoff_reservation(9)vmw_resource_do_evict(9)vmw_resource_validate(9)vmw_resource_unbind_list(9)vmw_query_readback_all(9)vmw_query_move_notify(9)vmw_resource_needs_backup(9)vmw_resource_evict_type(9)vmw_resource_evict_all(9)vmw_resource_unpin(9)vmw_res_type(9)vmw_resource_dirty_update(9)vmw_resources_clean(9)
xoxo, signing off from source ./drivers/gpu/drm/vmwgfx on October 2026 β this was vmw_resource_check_buffer(9), and yes, she ate. ππ¦π
π¦ 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