drm_atomic_plane_disabling(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_atomic_plane_disabling β€” check whether a plane is being disabled

okay so bestie, this one is from the Kernel API Manual (section 9, the driver-functions girlies ✨) and it's genuinely such a handy little vibe check for your atomic plane state πŸ¦‹


✨ SYNOPSIS ✨

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

returns a bool, takes two plane states, that's it, that's the whole slay πŸŽ€


🌸 ARGUMENTS 🌸

  • old_plane_state β€” the old atomic plane state, aka the before pic πŸ“Έ
  • new_plane_state β€” the new atomic plane state, aka the glow-up (or the downgrade, we don't judge πŸ’…)

πŸ‘‘ DESCRIPTION πŸ‘‘

so basically it checks the atomic state of a plane to figure out whether it's being disabled or not. that's the whole main character job, no cap πŸ’–

and like β€” it also WARNs if it catches an invalid state, because the rules are the rules, periodt: both CRTC and FB need to either both be NULL or both be non-NULL. no mixing and matching, that's not the vibe πŸ™ˆ


⭐ RETURN ⭐

true if the plane is being disabled, false otherwise. genuinely that simple, iykyk πŸ”₯


🫢 SEE ALSO 🫢


okay bye ily, this page lives in ./include/drm, it's the October 2026 version, and it's drm_atomic_plane_disabling(9) in case you forgot already 😭✨ go disable some planes responsibly πŸ’œ

πŸ“¦ where this page comes from