drm_atomic_g...nector_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_atomic_g...nector_state(9) ✨

Okay bestie, welcome to the Kernel API Manual πŸ’– β€” yes the title's got that cursed truncated-energy (drm_atomic_g...nector_state(9), they really said "you get the idea"), but the actual function inside is fully iconic, iykyk.


🌸 NAME 🌸

drm_atomic_get_old_connector_state β€” get connector state, if it exists

Like, if it exists is doing so much work in that sentence, keep that energy in mind πŸ‘€


πŸŽ€ SYNOPSIS πŸŽ€

struct drm_connector_state * drm_atomic_get_old_connector_state (const
struct drm_atomic_commit *state , struct drm_connector *connector );

That's the whole fit. Slay. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • state β€” the global atomic state object. the main character of this whole situation ✨
  • connector β€” the connector to grab. yeah. grab it. 🫢

πŸ’œ DESCRIPTION πŸ’œ

So here's the vibe check: this function returns the old connector state for the given connector. That's it, that's the whole job, and it does it gorgeously.

But β€” and this is the important part, don't skip it β€” if the connector is not part of the global atomic state, you get NULL back. Not an error, not a dramatic exit, just NULL. So pls check for it before you go dereferencing like a menace πŸ˜­πŸ™ˆ


🌈 SEE ALSO 🌈

The kernel file is ./include/drm/drm_atomic.h β€” go read it, it's giving lore ✨

And here's the whole friend group, no cap, every single one of them:

That's 36 besties, and yes I counted, and yes they're all invited to the function's birthday party πŸŽ‚


πŸ’€ Friendly reminder from your girl: NULL is a valid answer here, not a bug. Do not come for this function in the group chat when you forget to check it.

k bye ily, this page lives in ./include/drm and it's dated October 2026 β€” signed, sealed, shipped, periodt πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from