drm_plane_h...date_primary(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, slay
  • crtc_x β€” the x coordinate within the CRTC
  • crtc_y β€” the y coordinate within the CRTC
  • crtc_w β€” the width coordinate within the CRTC
  • crtc_h β€” the height coordinate within the CRTC
  • src_x β€” the x coordinate within the source
  • src_y β€” the y coordinate within the source
  • src_w β€” the width coordinate within the source
  • src_h β€” the height coordinate within the source
  • ctx β€” 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 🌈

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