vmw_legacy_srf_dma(9)
π vmw_legacy_srf_dma(9) π
okay so bestie, welcome to the Kernel API Manual β this page is all about vmw_legacy_srf_dma, and it is lowkey giving βcopy the backup data, but make it legacy surface.β Buckle up. π¦β¨
NAME πΈ
vmw_legacy_srf_dma β copy backup data to or from a legacy surface. That's the name, that's the function, we love a clear icon. π
SYNOPSIS π
int vmw_legacy_srf_dma (struct vmw_resource *res , struct
ttm_validate_buffer *val_buf , bool bind );
ARGUMENTS π«Ά
resβ pointer to astruct vmw_resthat's embedded in astruct vmw_surface. Cute nesting, no cap. πͺval_bufβ pointer to astruct ttm_validate_bufferholding the info about the backup buffer. It's the backup buffer's little info card. πbindβ a Boolean for wether to DMA to the surface. (Yes, βwetherβ is in the original, we are not correcting the lore. π)
DESCRIPTION π₯
So what does it actually do? It transfers backup data to or from a legacy surface as part of the validation process. Literally the main character of this page. π
Heads up though: it may return other errors if the kernel is out of guest resources. Not the slay we wanted, but okay. π
On successful completion, the backup buffer will be fenced or idle. And if the surface needs persistent backup storage, the backup buffer will also be returned reserved iff bind is true. (iff = if and only if, bestie β logic girlies know. π§ β¨)
SEE ALSO π
First up, the kernel file: ./drivers/gpu/drm/vmwgfx/vmwgfx_surface.c.
Then the whole friend group:
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_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)
made with π and way too much surface-maintenance energy by your kernel bestie. this page came from ./drivers/gpu/drm/vmwgfx, dated October 2026, and the footer vibe is vmw_legacy_srf_dma(9) β periodt. ππ
π¦ 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