drm_atomic_...d_crtc_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ drm_atomic_get_old_crtc_state β€” get old CRTC state, if it exists πŸ¦‹

okay so real talk, bestie: this one's from the Kernel API Manual, and it's genuinely one of the shorter ones, so like… grab a lil snack and let's go πŸ’…


✨ NAME ✨

drm_atomic_get_old_crtc_state β€” get old CRTC state, if it exists.

no cap, that's the whole pitch πŸŽ€


🌸 SYNOPSIS 🌸

struct drm_crtc_state * drm_atomic_get_old_crtc_state (const struct
drm_atomic_commit *state , struct drm_crtc *crtc );

like, yes, it's one function call, it's not that deep πŸ’œ


πŸ“ ARGUMENTS πŸ“

  • state β€” the global atomic state object. this is the big-picture vibe holder, the main character of the whole atomic commit situation πŸ‘‘
  • crtc β€” the CRTC you wanna grab, specifically. the one you're asking about 🫢

πŸ’« DESCRIPTION πŸ’«

so here's the tea: this function returns the old CRTC state for the CRTC you pass in. literally that's it, that's the function.

and if the CRTC is not part of the global atomic state? then it hands you back NULL. no state, no drama, just NULL. don't come for it 😭

fr fr check for that NULL, bestie β€” the page says "if it exists" for a reason πŸ’€

🌈 SEE ALSO 🌈

okay this part is lowkey iconic because the list is long, but every single one of these is a real friend of the function, so:

like I said. a lot of friends. iykyk πŸ’–


aaaand that's the page, bestie!! 🧚✨ this cutie came out of the ./include/drm source, dated October 2026, under the Kernel API Manual β€” mwah, slay, periodt πŸŒˆπŸ‘‘πŸ’…

πŸ“¦ where this page comes from