drm_crtc_helper_set_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_crtc_helper_set_mode(9) ✨

okay so bestie, welcome to the kernel API manual πŸ’– today's main character is drm_crtc_helper_set_mode, and she is lowkey the internal helper that sets a mode. like, that's literally her whole job description in NAME, no cap.


🌸 SYNOPSIS 🌸

bool drm_crtc_helper_set_mode (struct drm_crtc *crtc , struct
drm_display_mode *mode , int x , int y , struct drm_framebuffer *old_fb
);

she returns a bool, babes. remember that, it comes back at RETURN πŸ‘€


πŸŽ€ ARGUMENTS πŸŽ€

  • crtc β€” the CRTC we're programming πŸ’… that's the thing getting told what to do.
  • mode β€” the mode to use. the vibe we're setting. slay.
  • x β€” horizontal offset into the surface. horizontal, bestie. side to side.
  • y β€” vertical offset into the surface. up and down, you got it πŸ¦‹
  • old_fb β€” the old framebuffer, and it's here for cleanup. so like, she's the ex we're politely packing up πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so the whole point: try to set mode on crtc. fr fr, that's it. but it's giving thoughtful, because she gives crtc and its associated connectors a chance to fixup or reject the mode prior to trying to set it πŸ”₯ vibe check first, then mode set. iconic behaviour honestly.

she's an internal helper β€” so not your everyday public API, she's backstage crew 🧚 drivers could e.g. use her to update properties that require the entire output pipe to be disabled and re-enabled in a new configuration. the way that whole pipe has to fully go down and come back up 😭

what kind of properties? bestie I got you:

  • changing whether audio is enabled on a hdmi link πŸ“
  • changing panel fitter attributes
  • changing dither attributes

and she's not a solo act either β€” she's also called by the drm_crtc_helper_set_config helper function to drive the mode setting sequence. so she's out here doing collabs πŸ‘‘


⭐ RETURN ⭐

True if the mode was set successfully, false otherwise. that's the whole tea. true = slay, false = not slay πŸ’€


🌈 SEE ALSO 🌈

literally the whole friend group, go read them all 🫢


heads up bestie: she's an internal helper, so she's not out here for everyone to just call β€” she's the one the config path leans on πŸ’…

that's the page!! πŸŽ€ it lives in ./drivers/gpu/drm, dated October 2026, and it's part of the Kernel API Manual β€” mwah, go set some modes, ily πŸ’–βœ¨

πŸ“¦ where this page comes from