vmw_surface_init(9)
β¨ NAME β¨
vmw_surface_init β initialize a struct vmw_surface, periodt. This is the Kernel API Manual page vmw_surface_init(9), and itβs literally here to help you get that surface struct set up. No cap. π
π¦ SYNOPSIS π¦
int vmw_surface_init (struct vmw_private *dev_priv , struct vmw_surface
*srf , void (*res_free) (struct vmw_resource *res) );
π ARGUMENTS π
okay bestie, there are three inputs here, and theyβre all kinda main-character energy:
dev_privβ pointer to a device private struct. Thatβs the whole descriptor, fr fr.srfβ pointer to thestruct vmw_surfaceto initialize. Iconic. This is the struct getting its moment.res_freeβ pointer to a resource destructor used to free the object. Itβs the cleanup function pointer, the βbye babeβ moment. π«Ά
π SEE ALSO π
okay so the rabbit hole is real, and here is every single reference, no skips, no summaries:
- 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_define_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_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)
okay bye bestie π«Ά this page says source/version ./drivers/gpu/drm/vmwgfx and date October 2026 β slay, go init that surface. πβ¨π
π¦ 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