vmw_surface_define_size(9)
π vmw_surface_define_size(9) β the Kernel API Manual era π
okay so bestie, buckle up, because we're in the Kernel API Manual today and this one is a whole little function that just... does math for you. no cap. it's vmw_surface_define_size, and yes it lives in the kernel, and no it's not scary, come on. π¦
β¨ NAME β¨
vmw_surface_define_size β compute the fifo size for a surface define command. that's it. that's the whole gig. π
πΈ SYNOPSIS πΈ
uint32_t vmw_surface_define_size (const struct vmw_surface *srf );
like, you hand it a surface pointer and it hands you back a uint32_t. the way that signature just works. π₯
π ARGUMENTS π
srfβ pointer to astruct vmw_surface. that's your surface, your main character, the thing we're sizing a command for. π«Ά
π DESCRIPTION π
so what does it actually do? it computes the required size for a surface define command β the command that defines the surface represented by srf. π§
that's the vibe check: give it a surface, get back the size the define command needs. it's giving "backend math but make it cute". no side quests, no surprises, just sizing. β¨
π SEE ALSO π
okay this is the part where the manpage just. keeps. going. and I love that for us β every single one of these is linked below, iykyk π :
- Kernel file
./drivers/gpu/drm/vmwgfx/vmwgfx_surface.c struct vmw_user_surface(9)struct vmw_surface_offset(9)struct vmw_surface_dirty(9)vmw_surface_dma_size(9)vmw_surface_destroy_size(9)vmw_surface_destroy_encode(9)vmw_surface_define_encode(9)vmw_surface_dma_encode(9)vmw_hw_surface_destroy(9)vmw_legacy_srf_create(9)vmw_legacy_srf_dma(9)vmw_legacy_srf_bind(9)vmw_legacy_srf_unbind(9)vmw_legacy_srf_destroy(9)vmw_surface_init(9)vmw_user_surface_base_to_res(9)vmw_user_surface_free(9)vmw_user_surface_base_release(9)vmw_surface_destroy_ioctl(9)vmw_surface_define_ioctl(9)vmw_surface_reference_ioctl(9)vmw_gb_surface_create(9)vmw_gb_surface_define_ioctl(9)vmw_gb_surface_reference_ioctl(9)vmw_gb_surface_define_ext_ioctl(9)vmw_gb_surface_reference_ext_ioctl(9)vmw_gb_surface_define_internal(9)vmw_gb_surface_reference_internal(9)vmw_subres_dirty_add(9)vmw_subres_dirty_full(9)vmw_dumb_create(9)
ngl that SEE ALSO list ate and left absolutely no crumbs. go read some of them, they're your new besties now. π
and that's the page, bestie!! signing off from ./drivers/gpu/drm/vmwgfx, dated October 2026 β mwah, go size some surfaces π
πβ
π¦ 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