drm_mode_cr...cmdline_mode(9)
β¨ drm_mode_create_from_cmdline_mode β NAME β¨
okay so bestie, pull up a chair π this one is a kernel API manual page (yes, from the Kernel API Manual, we're fancy now π) and it's literally about drm_mode_create_from_cmdline_mode β the little icon that converts a command line modeline into a DRM display mode. it's giving "translator for pixels" β¨
π SYNOPSIS π
struct drm_display_mode * drm_mode_create_from_cmdline_mode (struct
drm_device *dev , struct drm_cmdline_mode *cmd );
like, that's the whole vibe. it hands you back a struct drm_display_mode * and takes two args. slay π
πΈ ARGUMENTS πΈ
devβ the DRM device you want the new mode created for. it's the main character here πcmdβ your input command line modeline. the raw material, the before picture π¦
β RETURN β
Pointer to the converted mode on success π β and NULL on error π (no cap, check it, fr fr).
π«Ά SEE ALSO π«Ά
buckle up bestie, this list is LONG and it ate π₯ β plus the kernel file lives at ./drivers/gpu/drm/drm_modes.c :
drm_mode_debug_printmodeline(9)drm_mode_create(9)drm_mode_destroy(9)drm_mode_probed_add(9)drm_analog_tv_mode(9)drm_cvt_mode(9)drm_gtf_mode_complex(9)drm_gtf_mode(9)drm_display_mode_from_videomode(9)drm_display_mode_to_videomode(9)drm_bus_flags_from_videomode(9)of_get_drm_display_mode(9)of_get_drm_panel_display_mode(9)drm_mode_set_name(9)drm_mode_vrefresh(9)drm_mode_get_hv_timing(9)drm_mode_set_crtcinfo(9)drm_mode_copy(9)drm_mode_init(9)drm_mode_duplicate(9)drm_mode_match(9)drm_mode_equal(9)drm_mode_equal_no_clocks(9)drm_mode_equal_no_clocks_no_stereo(9)drm_mode_validate_driver(9)drm_mode_validate_size(9)drm_mode_validate_ycbcr420(9)drm_mode_prune_invalid(9)drm_mode_compare(9)drm_mode_sort(9)drm_connector_list_update(9)drm_mode_parse_command_line_for_connector(9)drm_mode_convert_to_umode(9)drm_mode_convert_umode(9)drm_mode_is_420_only(9)drm_mode_is_420_also(9)drm_mode_is_420(9)drm_set_preferred_mode(9)
like, that's the whole friend group right there π iykyk π
lowkey a whole reading list, but every single one of them is linked above β nothing skipped, periodt π
anyway that's the page, bestie π go forth and convert those modelines β¨
β signed off from ./drivers/gpu/drm, dated October 2026, from your girl who genuinely loves a good DRM mode π¦π
π¦ 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