vmw_legacy_srf_dma(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 a struct vmw_res that's embedded in a struct vmw_surface. Cute nesting, no cap. πŸͺ†
  • val_buf β€” pointer to a struct ttm_validate_buffer holding 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:


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