STRUCT VMW_VALIDATION_CONTEXT(9)
π struct vmw_validation_context(9) β Kernel API Manual π
okay so bestie, welcome to the struct vmw_validation_context(9) page β yes, the Kernel API Manual, but make it group chat. The whole vibe is a per command submission validation context. It's literally the little validation HQ that rides along with one command submission. No cap. π¦
πΈ NAME πΈ
struct vmw_validation_context β per command submission validation context. That's the name, that's the purpose, that's the whole personality. π
β¨ SYNOPSIS β¨
struct vmw_validation_context {
struct vmw_sw_context *sw_context;
struct list_head resource_list;
struct list_head resource_ctx_list;
struct list_head bo_list;
struct list_head page_list;
struct ww_acquire_ctx ticket;
struct mutex *res_mutex;
unsigned int merge_dups;
unsigned int mem_size_left;
u8 *page_address;
};
π§ Members π§
One field, sw_context, appears in the struct synopsis but this page doesn't give it its own Members blurb β so we are not inventing extra lore for it, bestie. The rest of the cast:
resource_listβ list head for resource validation metadata. It's the main list for resource validation metadata, the guest list.resource_ctx_listβ list head for resource validation metadata for resources that need to be validated before those inresource_list. It's the before-list for validation order. βbo_listβ list head for buffer objects. Buffer objects get their own list head. We love a named list.page_listβ list of pages used by the memory allocator. The allocator's page collection, literally.ticketβ "Ticked used for ww mutex locking" in the original text, which means the ticket used for ww mutex locking. The typo is canon now. ποΈres_mutexβ pointer to mutex used for resource reserving. It's a pointer, not the mutex itself. Important distinction, bestie.merge_dupsβ whether to merge metadata for duplicate resources or buffer objects. Duplicate resource? Duplicate buffer object? This is the merge-metadata switch. π₯mem_size_leftβ free memory left in the last page inpage_list. Free space check: last-page edition. πpage_addressβ kernel virtual address of the last page inpage_list. It's the address of that last page, periodt. π
π¦ SEE ALSO π¦
The kernel file is ./drivers/gpu/drm/vmwgfx/vmwgfx_validation.h β go look, bestie.
DECLARE_VAL_CONTEXT(9)vmw_validation_has_bos(9)vmw_validation_bo_reserve(9)vmw_validation_bo_fence(9)vmw_validation_align(9)
mwah π stay validated. This page's source/version is ./drivers/gpu/drm/vmwgfx and the date is October 2026. The footer's truncated label is struct vmw_...tion_context(9) β the full name is still struct vmw_validation_context(9), obviously. π«Ά
π¦ 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