vmw_sou_plan...date_surface(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’» vmw_sou_plane_update_surface β€” a little kernel-y moment πŸ’…

okay so bestie, buckle up, because this one lives in the vmw_sou_plan...date_surface(9) manual (yes that's the truncated header name fr, it's giving "my name got cut off in the terminal") πŸ’– It's part of the Linux Kernel API Manual and it is literally about updating the display unit for a surface backed framebuffer. slay.


✨ NAME ✨

vmw_sou_plane_update_surface β€” update the display unit for a surface-backed fb πŸŽ€

like… it's the function that goes "hey display unit, new surface just dropped" and honestly? iconic.


🌸 SYNOPSIS 🌸

int vmw_sou_plane_update_surface (struct vmw_private *dev_priv , struct
drm_plane *plane , struct drm_plane_state *old_state , struct
vmw_framebuffer *vfb , struct vmw_fence_obj **out_fence );

it returns an int, bestie. remember that. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev_priv β€” the device private. it's the private ✨device✨ data, the main character of the whole driver ngl.
  • plane β€” the plane state. yes, plane like the display plane, not like an airplane 😭
  • old_state β€” the old plane state. the before-pic, if you will. πŸ™ˆ
  • vfb β€” the framebuffer which is blitted to the display unit. this is the actual visual content being pushed out πŸ’«
  • out_fence β€” if it's non-NULL, this will return a ref-counted pointer to vmw_fence_obj. and listen, the returned fence pointer may be NULL, in which case the device has already synchronized. so like, don't panic if it's NULL, that's just the device saying "already handled it, we're good" πŸ‘‘

⭐ RETURN ⭐

0 on success, or a negative error code on failure. that's it, that's the whole vibe check πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c, plus the whole friend group:

no cap, that's a whole squad 🫢


πŸ’€ real talk though: out_fence may hand you a NULL pointer and that is not an error, it just means the device already synchronized. don't @ me, it's in the docs.

and that's the whole page, bestie! this one's from ./drivers/gpu/drm/vmwgfx, dated October 2026, and the manual page itself is vmw_sou_plan...date_surface(9) πŸŽ€ go forth and update those surfaces, ily, mwah πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from