vmw_kms_sou_...urface_dirty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– vmw_kms_sou_do_surface_dirty πŸ’–

okay so this is from the Kernel API Manual, and the page header is literally vmw_kms_sou_...urface_dirty(9) (yes, with the lil ellipsis moment 😭), but the function we are actually hyping is vmw_kms_sou_do_surface_dirty πŸ’…βœ¨


✨ NAME ✨

vmw_kms_sou_do_surface_dirty β€” dirty part of a surface backed framebuffer πŸŽ€


🌸 SYNOPSIS 🌸

the whole signature, no cuts, bestie:

int vmw_kms_sou_do_surface_dirty (struct vmw_private *dev_priv , struct
       vmw_framebuffer *framebuffer , struct drm_clip_rect *clips , struct
       drm_vmw_rect *vclips , struct vmw_resource *srf , s32 dest_x , s32
       dest_y , unsigned num_clips , int inc , struct vmw_fence_obj **out_fence
       , struct drm_crtc *crtc );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev_priv β€” pointer to the device private structure. iconic little context holder πŸ’–
  • framebuffer β€” pointer to the surface-buffer backed framebuffer. yes bestie, that one πŸ¦‹
  • clips β€” array of clip rects. 🚨 real talk from the page: either clips or vclips must be NULL.
  • vclips β€” alternate array of clip rects. same vibe check: either clips or vclips must be NULL πŸ’€
  • srf β€” pointer to surface to blit from. if it’s NULL, the surface attached to framebuffer will be used ✨
  • dest_x β€” X coordinate offset to align srf with framebuffer coordinates 🌈
  • dest_y β€” Y coordinate offset to align srf with framebuffer coordinates 🌈
  • num_clips β€” number of clip rects in clips πŸ“
  • inc β€” increment to use when looping over clips πŸ”₯
  • out_fence β€” if non-NULL, will return a ref-counted pointer to a struct vmw_fence_obj. the returned fence pointer may be NULL, in which case the device has already synchronized πŸ‘‘
  • crtc β€” if crtc is passed, perform surface dirty on that crtc only πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns 0 on success, negative error code on failure. and specifically -ERESTARTSYS if interrupted 😭 periodt.


πŸ’œ SEE ALSO πŸ’œ

the kernel file is ./drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c, and the whole crew is here:


okay bye bestie 🫢 this cutie comes from ./drivers/gpu/drm/vmwgfx, dated October 2026, and the footer still calls it vmw_kms_sou_...urface_dirty(9) β€” periodt πŸ’…βœ¨

πŸ“¦ where this page comes from