STRUCT VMW_CMDBUF_ALLOC_INFO(9)
π NAME π
struct vmw_cmdbuf_alloc_info β the little metadata bundle that keeps track of a command buffer space allocation, bestie π
This one lives in the Kernel API Manual, and it's lowkey just three fields doing a very specific job. No cap.
β¨ SYNOPSIS β¨
struct vmw_cmdbuf_alloc_info {
size_t page_size;
struct drm_mm_node *node;
bool done;
};
π Members π
Okay so there are literally three things in here, and each one is doing main character work:
page_sizeβ the size of the command buffer space you're asking for, measured in pages. That's the ask π«Άnodeβ a pointer to the range manager node. That's the hookup to the range manager, iykyk π₯doneβ aboolthat's true if this allocation has actually succeeded. It's giving "did we slay or did we flop" energy π
Heads up: done being true means this allocation has succeeded. Like, that's the whole vibe check for the struct β don't read it as anything fancier than that π
π SEE ALSO π
The kernel file this all hangs out with is ./drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c, and honestly the friend group is extensive. Obsessed with how many of these there are, honestly β periodt:
struct vmw_cmdbuf_context(9)struct vmw_cmdbuf_man(9)struct vmw_cmdbuf_header(9)struct vmw_cmdbuf_dheader(9)vmw_cmdbuf_cur_lock(9)vmw_cmdbuf_cur_unlock(9)vmw_cmdbuf_header_inline_free(9)__vmw_cmdbuf_header_free(9)vmw_cmdbuf_header_free(9)vmw_cmdbuf_header_submit(9)vmw_cmdbuf_ctx_init(9)vmw_cmdbuf_ctx_submit(9)vmw_cmdbuf_ctx_process(9)vmw_cmdbuf_man_process(9)vmw_cmdbuf_ctx_add(9)vmw_cmdbuf_irqthread(9)vmw_cmdbuf_work_func(9)vmw_cmdbuf_man_idle(9)__vmw_cmdbuf_cur_flush(9)vmw_cmdbuf_cur_flush(9)vmw_cmdbuf_idle(9)vmw_cmdbuf_try_alloc(9)vmw_cmdbuf_alloc_space(9)vmw_cmdbuf_space_pool(9)vmw_cmdbuf_space_inline(9)vmw_cmdbuf_alloc(9)vmw_cmdbuf_reserve_cur(9)vmw_cmdbuf_commit_cur(9)vmw_cmdbuf_reserve(9)vmw_cmdbuf_commit(9)vmw_cmdbuf_send_device_command(9)vmw_cmdbuf_preempt(9)vmw_cmdbuf_startstop(9)vmw_cmdbuf_set_pool_size(9)vmw_cmdbuf_man_create(9)vmw_cmdbuf_remove_pool(9)vmw_cmdbuf_man_destroy(9)
and that's the whole page, bestie β¨ This lil doc came to you straight out of ./drivers/gpu/drm/vmwgfx, dated October 2026, and it's filed under struct vmw_cmdbuf_alloc_info(9) in case you need to find it again. Go forth and allocate responsibly ππ¦π
π¦ 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