vmw_stdu_pr...e_prepare_fb(9)
π vmw_stdu_primary_plane_prepare_fb β the NAME bit β¨
okay so bestie, this is vmw_stdu_primary_plane_prepare_fb and it comes to you straight from the Kernel API Manual (yes, the whole manual, we're fancy like that π). Short version? It readies the display surface. That's the vibe. That's the whole job. π₯
β¨ SYNOPSIS β¨
int vmw_stdu_primary_plane_prepare_fb (struct drm_plane *plane , struct
drm_plane_state *new_state );
like, literally copy that exactly, don't @ me π
π«Ά ARGUMENTS π«Ά
planeβ the display plane itself, the main character of this whole situation πnew_stateβ all the info about the new plane state, and yes that includes the FB, it's giving "the FB is in there, iykyk" π
πΈ DESCRIPTION πΈ
okay so here's the tea π β this function allocates a new display surface if the content is backed by a buffer object. That's the whole bit.
The display surface gets pinned right here in this function, and then it'll get unpinned later in .cleanup_fb. so like, the pinning and the unpinning are a matched set, don't forget the cleanup part fr fr π§
β RETURN β
0 on success β¨ that's it, that's the number, we love a clean zero π«Ά
π¦ SEE ALSO π¦
the whole friend group, no cap:
- Kernel file
./drivers/gpu/drm/vmwgfx/vmwgfx_stdu.cβ that's where this lives, go look π struct vmw_stdu_dirty(9)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_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)
like I said β the whole friend group ππ
ngl if you're reading this at 3am in ./drivers/gpu/drm/vmwgfx, drink some water bestie, the kernel will still be there in the morning π«Ά
and that's the page!! π sign-off time: this lil beauty ships from ./drivers/gpu/drm/vmwgfx and it's dated October 2026 β so yeah, it's from the future, we stay iconic πβ¨ periodt π
π¦ 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