drm_plane_h...date_primary(9)
π drm_plane_helper_update_primary(9) π
okay so this is a page straight out of the Kernel API Manual (yes, the Kernel API Manual, we stan a legend), and bestie, we are talking about drm_plane_helper_update_primary. Buckle up, it's giving "vintage helper function energy" π
β¨ NAME β¨
drm_plane_helper_update_primary β the helper for updating primary planes, no cap π¦
πΈ SYNOPSIS πΈ
int drm_plane_helper_update_primary (struct drm_plane *plane , struct
drm_crtc *crtc , struct drm_framebuffer *fb , int crtc_x , int crtc_y ,
unsigned int crtc_w , unsigned int crtc_h , uint32_t src_x , uint32_t
src_y , uint32_t src_w , uint32_t src_h , struct drm_modeset_acquire_ctx
*ctx );
like, look at that signature. it's long long. twelve whole parameters. main character energy honestly π
π«Ά ARGUMENTS π«Ά
planeβ the plane you're updating, bestie. that's the whole vibe.crtcβ the plane's new CRTC πfbβ the plane's new framebuffer, slaycrtc_xβ the x coordinate within the CRTCcrtc_yβ the y coordinate within the CRTCcrtc_wβ the width coordinate within the CRTCcrtc_hβ the height coordinate within the CRTCsrc_xβ the x coordinate within the sourcesrc_yβ the y coordinate within the sourcesrc_wβ the width coordinate within the sourcesrc_hβ the height coordinate within the sourcectxβ the modeset locking context π (lock girl summer)
π¦ DESCRIPTION π¦
so what does it do? this helper validates the parameters you hand it and then updates the primary plane. that's it, that's the function. simple, iconic, done π
but here's the part where you need to listen, bestie, because this is a big deal:
this function is only useful for non-atomic modesetting. don't use it in new drivers. fr fr. not me warning you so you don't get dragged in code review π
β RETURN β
zero on success π β or an errno code otherwise (sad girl hours) π
π SEE ALSO π
- the Kernel file
./drivers/gpu/drm/drm_plane_helper.coverview(9) drm_plane_helper_disable_primary(9)drm_plane_helper_destroy(9)
go read those too, iykyk π₯
and that's the whole page, bestie! this one's from ./drivers/gpu/drm, dated October 2026 β the Kernel API Manual said periodt and signed off, and honestly? we're obsessed π§ππ
π¦ 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