vmw_stdu_init(9)
๐ NAME ๐
okay so this is vmw_stdu_init(9) from the Kernel API Manual, and itโs the function that sets up a Screen Target Display Unit ๐
โจ SYNOPSIS โจ
int vmw_stdu_init (struct vmw_private *dev_priv , unsigned unit );
๐ธ ARGUMENTS ๐ธ
dev_privโ VMW DRM device, aka the device context youโre handing over ๐ซถunitโ the unit number, range from0toVMWGFX_NUM_DISPLAY_UNITSโจ
๐ฆ DESCRIPTION ๐ฆ
the way this works: this function is called once per CRTC, and it allocates one Screen Target display unit to represent that CRTC. Since the SVGA device does not separate out encoder and connector, they are represented as part of the STDU as well. no cap, thatโs the whole setup ๐
๐ฅ RETURN ๐ฅ
0 on success or -errno code on failure. slay when itโs zero, weep when itโs errno ๐ญ
๐ฎ SEE ALSO ๐ฎ
the kernel file is ./drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c; struct vmw_stdu_dirty(9) (yes, exactly like that, bestie) and the rest of the squad:
struct vmw_screen_target_display_unit(9)vmw_stdu_crtc_destroy(9)vmw_stdu_define_st(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_destroy(9)vmw_kms_stdu_init_display(9)
okay thatโs the tea โ โ source/version ./drivers/gpu/drm/vmwgfx, dated October 2026, for vmw_stdu_init(9). bye bestie, go set up those Screen Target Display Units ๐๐ฆ
๐ฆ 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