__vmw_cmdbuf_cur_flush(9)
π
__vmw_cmdbuf_cur_flush β like, the Kernel API Manual, section 9, bestie π
okay so welcome to the group chat, the vibe today is kernel command buffers and honestly? iconic. This one lives in section 9 of the Kernel API Manual and it's all about flushing the current command buffer when your kernel command submissions are smol. yes. tiny. little baby submissions. we love them. π¦
β¨ NAME β¨
__vmw_cmdbuf_cur_flush β flush the current command buffer for small kernel command submissions π«
πΈ SYNOPSIS πΈ
void __vmw_cmdbuf_cur_flush (struct vmw_cmdbuf_man *man );
π«Ά ARGUMENTS π«Ά
manβ the command buffer manager. that's it. that's the whole argument. she's the main character here π
π DESCRIPTION π
So basically: this flushes the current command buffer without allocating a new one. no cap. the new one gets allocated automatically later, whenever it's actually needed β so don't stress about it, she handles herself β¨
β οΈ ok this is the part where you listen: you gotta call this with man->cur_mutex held. like, already locked by you. not "I'll lock it in a sec". held. periodt. π
π¦ SEE ALSO π¦
the whole friend group, fr fr β go say hi to all of them:
- the kernel file
./drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.cπ struct vmw_cmdbuf_context(9)struct vmw_cmdbuf_man(9)struct vmw_cmdbuf_header(9)struct vmw_cmdbuf_dheader(9)struct vmw_cmdbuf_alloc_info(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_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)
(yes, vmw_cmdbuf_cur_flush(9) is in there too β she's on her own see-also list. self-love! we stan ππ)
and that's the page!! πβ¨ this little baddie is brought to you by the fine folks over at ./drivers/gpu/drm/vmwgfx, dated October 2026 β mwah, ily, go lock your mutex π«Άπ
π¦ 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