dpu_crtc_check_mode_changed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpu_crtc_check_mode_changed(9) β€” from the Kernel API Manual, bestie ✨

Okay so this one is from the Kernel API Manual (yes, the (9) section, we love a kernel-internals moment πŸ‘‘) and it's genuinely so useful β€” it's the little function that answers the question everyone asks before a big change: do we need to redo the whole modeset, or are we fine? πŸ¦‹


🌸 NAME 🌸

dpu_crtc_check_mode_changed β€” literally just checking if a full modeset is required, no cap πŸ’…


✨ SYNOPSIS ✨

int dpu_crtc_check_mode_changed (struct drm_crtc_state *old_crtc_state ,
struct drm_crtc_state *new_crtc_state );

So it takes two states and gives you back an int β€” that's the whole vibe check in one line 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • old_crtc_state β€” the previous CRTC state, aka the "before" pic πŸ“Έ
  • new_crtc_state β€” the corresponding CRTC state that's gonna get checked, aka the "after" pic πŸͺž

Two states, one comparison, we're so back 😭


πŸ”₯ DESCRIPTION πŸ”₯

The way this function's whole job is to check if the changes in the object properties demand full mode set β€” that's it, that's the function πŸ’€ It looks at what changed between those two states and tells you whether the properties shifted enough that a full modeset is required. Not a partial thing, not a "eh, close enough" thing β€” full mode set. Periodt πŸ’…


🌈 SEE ALSO 🌈

Kernel file: ./drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c β€” the main character file itself, go read it iykyk πŸ“–

And the whole friend group πŸ’–:

Squad goals, fr fr 🧚


Quick reminder bestie: this one's only a check β€” it tells you if a full modeset is required, it doesn't do the whole thing for you πŸ™ˆ

Alright that's the page! Source/version biz: this lives over in ./drivers/gpu/drm/msm/disp/dpu1, and it's dated October 2026 β€” so go forth, check those mode changes, and slay πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from