drm_mode_pa...or_connector(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 preallocated drm_cmdline_mode structure 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:


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