STRUCT DRM_MODE_SET(9)
π
struct drm_mode_set(9) π
okay so bestie, this is struct drm_mode_set(9) from the Kernel API Manual, and it is literally the blueprint for new values in a CRTC config change. no cap, let's get into it π«Ά
π¦ NAME π¦
struct drm_mode_set β new values for a CRTC config change β¨
πΈ SYNOPSIS πΈ
struct drm_mode_set {
struct drm_framebuffer *fb;
struct drm_crtc *crtc;
struct drm_display_mode *mode;
uint32_t x;
uint32_t y;
struct drm_connector **connectors;
size_t num_connectors;
};
π Members π
fbβ the framebuffer to use for the new config. it's giving "here's the canvas, bestie" π¨crtcβ the CRTC whose configuration we're about to change. main character energy, fr fr πmodeβ the mode timings to use. the whole vibe check for the display β±οΈxβ position of this CRTC relative tofb. yes, the x-coordinate, we love a coordinate πyβ position of this CRTC relative tofb. and the y-coordinate too, because we're thorough like that π§connectorsβ array of connectors to drive with this CRTC if possible. lowkey flexible, highkey useful πnum_connectorsβ size of theconnectorsarray. literally the count, keeping things accountable π
π Description π
so this struct represents a modeset configuration for the legacy SETCRTC ioctl, and it's also used internally. it's giving old-school but still showing up to the group chat π
atomic drivers instead use drm_atomic_commit. periodt, that's the atomic route π«
lowkey legacy alert: this is the legacySETCRTCioctl situation. atomic drivers are over here usingdrm_atomic_commitinstead. know the difference, bestie π
π SEE ALSO π
Kernel file ./include/drm/drm_crtc.h β and these iconic little references:
struct drm_crtc_state(9)struct drm_crtc_funcs(9)struct drm_crtc(9)drmm_crtc_alloc_with_planes(9)drm_crtc_index(9)drm_crtc_mask(9)drm_crtc_find(9)drm_for_each_crtc(9)drm_for_each_crtc_reverse(9)
and that's the page, bestie π signed off from ./include/drm, dated October 2026, in the Kernel API Manual β struct drm_mode_set(9) out! πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms