drm_atomic_plane_enabling(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_atomic_plane_enabling(9)

okay so bestie, welcome to the Kernel API Manual entry for drm_atomic_plane_enabling β€” this is a kernel function, not a command you type in your terminal, so no, you can't just run it, but you can absolutely understand it. let's go 🫢


✨ NAME ✨

drm_atomic_plane_enabling β€” check whether a plane is being enabled 🌸

like, literally just peeking at a plane and going "hey are you turning on or not" β€” that's the whole vibe check πŸ”₯


✨ SYNOPSIS ✨

bool drm_atomic_plane_enabling (struct drm_plane_state *old_plane_state
, struct drm_plane_state *new_plane_state );

it takes two plane states and hands you back a bool β€” simple, iconic, no drama πŸ’…


✨ ARGUMENTS ✨

  • old_plane_state β€” the old atomic plane state, i.e. the "before" picture πŸŽ€
  • new_plane_state β€” the new atomic plane state, aka the "after" β€” what it wants to become ✨

ngl, it's just old vs new, side by side, and the function is judging the glow-up πŸ’–


✨ DESCRIPTION ✨

so what this does is it checks the atomic state of a plane to determine whether it's being enabled or not πŸ‘‘

and yes, it also WARNs if it detects an invalid state β€” because both CRTC and FB need to either both be NULL or both be non-NULL. no mixing and matching, that's the rule, periodt πŸ’€

so if one of them is NULL and the other isn't, that's a red flag 🚩 and the kernel will absolutely let you know via a warning. it's giving "i'm not mad, i'm just disappointed" 😭


✨ RETURN ✨

  • True β€” the plane is being enabled, slay, it's turning on 🌈
  • false β€” otherwise, it's not πŸ”•

that's it, two outcomes, no in-between, very main character energy ⭐


✨ SEE ALSO ✨

the kernel file lives at ./include/drm/drm_atomic_helper.h πŸ¦‹ β€” go check it out, iykyk

and while you're there, these are all the besties in the same friend group:


that's the whole page bestie, every flag, every warning, every reference β€” nothing left out, we ate and left no crumbs πŸ‘‘βœ¨

this gem came from ./include/drm, and it's dated October 2026 β€” note the version, screenshot it, put it on your mood board πŸŽ€

mwah, ily, go read more manpages πŸ’–πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from