drm_mode_set_crtcinfo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ drm_mode_set_crtcinfo(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual page for drm_mode_set_crtcinfo β€” yes, that whole name, we love her. This is the one that sets up your CRTC modesetting timing parameters, and I'm gonna walk you through it like we're in the group chat. πŸ’…


✨ NAME ✨

drm_mode_set_crtcinfo β€” set CRTC modesetting timing parameters.

πŸ“œ SYNOPSIS πŸ“œ

void drm_mode_set_crtcinfo (struct drm_display_mode *p , int
       adjust_flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • p β€” the mode. like, the struct drm_display_mode * you're working on, bestie.
  • adjust_flags β€” a combination of adjustment flags. a little combo of flags that tell it how to adjust.

πŸ’« DESCRIPTION πŸ’«

okay so the whole vibe is: this sets up the CRTC modesetting timing parameters for p, and it adjusts them if necessary. no cap, that's the job. 🫢

Here are the flags doing their little iconic things:

  • CRTC_INTERLACE_HALVE_V β€” this flag can be used to halve the vertical timings of interlaced modes. it's giving half, but specifically for vertical timings, iykyk.
  • CRTC_STEREO_DOUBLE β€” this flag can be used to compute the timings for buffers containing two eyes. only adjust the timings when needed, eg. for "frame packing" or "side by side full". two eyes, one timing situation, slay. πŸ‘€
  • CRTC_NO_DBLSCAN and CRTC_NO_VSCAN β€” these flags request that adjustment not be performed for doublescan and vscan > 1 modes respectively. so yeah, respectfully, do not adjust those. periodt. πŸ’€

πŸ”— SEE ALSO πŸ”—

Kernel file ./drivers/gpu/drm/drm_modes.c β€” that's where the code lives, bestie. go look, it's giving main character energy.


mwah πŸ’‹ signing off from ./drivers/gpu/drm, October 2026, with all the drm_mode_set_crtcinfo(9) energy β€” bye bestie! 🫢✨

πŸ“¦ where this page comes from