Scroll to navigation

DRM_MODE_PARSE_COMMA(9) DRM Core DRM_MODE_PARSE_COMMA(9)

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, struct drm_connector * connector, struct drm_cmdline_mode * mode);

ARGUMENTS

mode_option
optional per connector mode option
connector
connector to parse modeline for
mode
preallocated drm_cmdline_mode structure to fill out

DESCRIPTION

This parses mode_option command line modeline for modes and options to configure the connector. If mode_option is NULL the default command line modeline in fb_mode_option will be parsed instead.
This uses the same parameters as the fb modedb.c, except for an extra force-enable, force-enable-digital and force-disable bit at the end:
<xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m][eDd]
The intermediate drm_cmdline_mode structure is required to store additional options from the command line modline like the force-enabel/disable flag.

RETURNS

True if a valid modeline has been parsed, false otherwise.

AUTHORS

Jesse Barnes <jesse.barnes@intel.com>
 
Intel Corporation,
Initial version
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
 
Ideas on board SPRL,
Driver internals
Daniel Vetter <daniel.vetter@ffwll.ch>
 
Intel Corporation,
Contributions all over the place

COPYRIGHT

May 2018 Kernel Hackers Manual 3.16