drm_mode_pa...or_connector(9)
π drm_mode_parse_command_line_for_connector(9) π
okay bestie, welcome to the Kernel API Manual β¨ β yes that's the manual name, i'm not copying the whole header line, we're being cute about it. anyway. this is the page for drm_mode_parse_command_line_for_connector, which is literally the function that reads your command line modeline for a connector. she's a parser. she's iconic. let's go π
πΈ NAME πΈ
drm_mode_parse_command_line_for_connector β parse command line modeline for connector π
β¨ SYNOPSIS β¨
bool drm_mode_parse_command_line_for_connector (const char *mode_option
, const struct drm_connector *connector , struct drm_cmdline_mode *mode
);
π¦ ARGUMENTS π¦
mode_optionβ optional per connector mode option. yes bestie, optional. she can be literally nothing, that's allowed πconnectorβ the connector we're parsing the modeline for. she's the main character here πmodeβ a preallocateddrm_cmdline_modestructure that you hand over and she fills out. think of it as a little bowl you give her to put the vibes in π
π DESCRIPTION π
so what does she actually do. she parses the mode_option command line modeline β all the modes and options β so your connector can get configured. that's the whole gig, no cap. π
the parameters are the same ones fb modedb.c uses, with one little extra at the end: a force-enable, a force-enable-digital, and a force-disable bit. dramatic? yes. useful? also yes β¨
<xres>x<yres>[M][R][-<bpp>][<refresh>][i][m][eDd]
and you can stack more options after the mode, separating each one with a comma π«Ά. the valid options live in Documentation/fb/modedb.rst β go read it, iykyk.
the intermediate drm_cmdline_mode structure is required, bestie. it's where the extra options from the command line modline get stored β like the force-enable/disable flag. don't skip her, she's doing real work π
β RETURN β
True if a valid modeline has been parsed, False otherwise. simple as. slay πΈ
π SEE ALSO π
kernel file ./drivers/gpu/drm/drm_modes.c
and the whole friend group, fr fr:
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_create_from_cmdline_mode(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)
and that's the page, bestie π«Άπ
cute little sign-off: this lil beauty lives under ./drivers/gpu/drm, she's dated October 2026, and she's page drm_mode_pa...or_connector(9) of the Kernel API Manual. mwah πβ¨
π¦ 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