vmw_stdu_define_st(9)
π vmw_stdu_define_st (9) β the Kernel API Manual moment π
okay so bestie, welcome to the vmw_stdu_define_st(9) page of the Kernel API Manual, and yes we ARE reading kernel docs together, this is our bonding era π«Ά
β¨ NAME β¨
vmw_stdu_define_st β literally defines a Screen Target. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int vmw_stdu_define_st (struct vmw_private *dev_priv , struct
vmw_screen_target_display_unit *stdu , struct drm_display_mode *mode ,
int crtc_x , int crtc_y );
she takes five args and returns an int, no cap π
π¦ ARGUMENTS π¦
dev_privβ the VMW DRM device. your main character device, fr.stduβ the display unit we're creating a Screen Target for. this is the lil guy we're building π₯Ίmodeβ the mode to set. the resolution/refresh situation.crtc_xβ X coordinate of the screen target, relative to the framebuffer origin. horizontal placement, iykyk.crtc_yβ Y coordinate of the screen target, relative to the framebuffer origin. the vertical one, obviously π
π DESCRIPTION π
so basically: this creates a STDU that we can use later. and the important bit β this function gets called whenever the framebuffer size changes. every time. size change = this runs. periodt. π₯
like, it's not a "call it once and forget" situation, it's a "framebuffer resized, time to re-do the thing" situation. iconic behaviour honestly.
β RETURN β
0on success π- an error code on failure π (go check what the error code actually says, bestie, don't guess)
π SEE ALSO π
you want the whole friend group? here's the whole friend group. all of them, in the kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c:
struct vmw_stdu_dirty(9)struct vmw_screen_target_display_unit(9)vmw_stdu_crtc_destroy(9)vmw_stdu_bind_st(9)vmw_stdu_populate_update(9)vmw_stdu_update_st(9)vmw_stdu_destroy_st(9)vmw_stdu_crtc_mode_set_nofb(9)vmw_stdu_bo_cpu_clip(9)vmw_stdu_bo_cpu_commit(9)vmw_kms_stdu_readback(9)vmw_kms_stdu_surface_clip(9)vmw_kms_stdu_surface_fifo_commit(9)vmw_kms_stdu_surface_dirty(9)vmw_stdu_encoder_destroy(9)vmw_stdu_connector_destroy(9)vmw_stdu_primary_plane_cleanup_fb(9)vmw_stdu_primary_plane_prepare_fb(9)vmw_stdu_plane_update_bo(9)vmw_stdu_plane_update_surface(9)vmw_stdu_primary_plane_atomic_update(9)vmw_stdu_init(9)vmw_stdu_destroy(9)vmw_kms_stdu_init_display(9)
happy reading, bestie, this list ate and left no crumbs π
reminder that everything above lives in ./drivers/gpu/drm/vmwgfx β that's the folder, that's the home base π§
and that's the page!! mwah π this little sign-off comes to you from ./drivers/gpu/drm/vmwgfx, dated October 2026, and it's called vmw_stdu_define_st(9) β stream it, bookmark it, tell your friends πβ¨
π¦ 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