drm_plane_he...able_primary(9)
π drm_plane_he...able_primary(9) β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual β¨ this one's about drm_plane_helper_disable_primary, and ngl the name is a whole keyboard smash but we move π«Ά
πΈ NAME πΈ
drm_plane_helper_disable_primary β the helper for disabling primary planes π
β¨ SYNOPSIS β¨
int drm_plane_helper_disable_primary (struct drm_plane *plane , struct
drm_modeset_acquire_ctx *ctx );
like, it takes two things and gives you back an int. that's the whole vibe π
π ARGUMENTS π
planeβ the plane you're trying to disable, bestie. that's the main character here πctxβ the modeset locking context. it's giving "let me in, I have the keys" π
π¦ DESCRIPTION π¦
okay so here's the tea π this helper returns an error when you try to disable the primary plane. like, it literally does not let you. not me being told no π
and the important part, bestie: this function is only useful for non-atomic modesetting. that's it, that's the whole lane it stays in.
β οΈ fr fr, do not use it in new drivers. it's not for the new girls. periodt π
π RETURN π
an errno code. that's the whole return value, no cap β¨
π SEE ALSO π
- the Kernel file
./drivers/gpu/drm/drm_plane_helper.coverview(9) β go read the source, iykyk π drm_plane_helper_update_primary(9)β the sibling that actually updates stuff π₯drm_plane_helper_destroy(9)β the one that handles the goodbye π§
π cute sign-off time π β this lil page lives in ./drivers/gpu/drm, dated October 2026. stan the kernel docs, drink water, and don't use deprecated helpers in new drivers ππ
π¦
π¦ 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