STRUCT DRM_MODE_MODEINFO(9)
π struct drm_mode_modeinfo(9) π
okay so this is a page straight out of the Kernel API Manual (yes, that one) and it's all about struct drm_mode_modeinfo, which is literally just display mode info. cute name, big job. let's get into it bestie π«Ά
β¨ SYNOPSIS β¨
like, here's the whole struct, no notes, copy it exactly or the compiler will simply end you π
struct drm_mode_modeinfo {
__u32 clock;
__u16 hdisplay;
__u16 hsync_start;
__u16 hsync_end;
__u16 htotal;
__u16 hskew;
__u16 vdisplay;
__u16 vsync_start;
__u16 vsync_end;
__u16 vtotal;
__u16 vscan;
__u32 vrefresh;
__u32 flags;
__u32 type;
char name[DRM_DISPLAY_MODE_LEN];
};
π Members π
time for the roster π every field is a main character, no filler:
clockβ pixel clock, measured in kHz. the tempo of your pixels fr fr.hdisplayβ horizontal display size.hsync_startβ horizontal sync start.hsync_endβ horizontal sync end.htotalβ horizontal total size.hskewβ horizontal skew.vdisplayβ vertical display size.vsync_startβ vertical sync start.vsync_endβ vertical sync end.vtotalβ vertical total size.vscanβ vertical scan.vrefreshβ approximate vertical refresh rate in Hz (key word: approximate, she's not making promises π ).flagsβ a bitmask of misc. flags, see theDRM_MODE_FLAG_*defines.typeβ a bitmask of type flags, see theDRM_MODE_TYPE_*defines.nameβ a string describing the mode resolution. yes queen, label yourself πΈ
π¦ Description π¦
so this is the user-space API display mode information structure. iykyk. if you were looking for the kernel-side version, that's a whole different girl β go see struct drm_display_mode π₯
π SEE ALSO π
the friend group π«Ά all of these are linked and you will be clicking through them:
- Kernel file
./include/uapi/drm/drm_mode.hoverview(9) - struct
drm_mode_get_plane(9) - struct
drm_mode_get_connector(9) - struct
drm_mode_property_enum(9) - struct
drm_mode_get_property(9) - struct
drm_mode_fb_cmd2(9) - enum
drm_colorop_type(9) - enum
drm_colorop_lut3d_interpolation_type(9) - enum
drm_colorop_lut1d_interpolation_type(9) - struct
drm_plane_size_hint(9) - struct
hdr_metadata_infoframe(9) - struct
hdr_output_metadata(9) DRM_MODE_PAGE_FLIP_EVENT(9)DRM_MODE_PAGE_FLIP_ASYNC(9)DRM_MODE_PAGE_FLIP_FLAGS(9)- struct
drm_mode_create_dumb(9) DRM_MODE_ATOMIC_TEST_ONLY(9)DRM_MODE_ATOMIC_NONBLOCK(9)DRM_MODE_ATOMIC_ALLOW_MODESET(9)DRM_MODE_ATOMIC_FLAGS(9)- struct
drm_mode_create_blob(9) - struct
drm_mode_destroy_blob(9) - struct
drm_mode_create_lease(9) - struct
drm_mode_list_lessees(9) - struct
drm_mode_get_lease(9) - struct
drm_mode_revoke_lease(9) - struct
drm_mode_rect(9) - struct
drm_mode_closefb(9)
ngl bestie, if you're touching modesetting, read drm_mode.h first. it's giving "required reading" energy πβ¨
and that's the whole vibe check π this one lives in ./include/uapi/drm, dated October 2026, and it's filed under struct drm_mode_modeinfo(9) β go off, mode queen ππ
π¦ 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