---
name: "drm_mode_create_from_cmdline_mode"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_mode_create_from_cmdline_mode"
---

# drm\_mode\_create\_from\_cmdline\_mode(9)

convert a command line modeline into a DRM display mode

## NAME

drm\_mode\_create\_from\_cmdline\_mode - convert a command line modeline into a DRM display mode

## SYNOPSIS

**struct drm\_display\_mode \* drm\_mode\_create\_from\_cmdline\_mode(struct drm\_device \*** *dev***, struct drm\_cmdline\_mode \*** *cmd***);**

## ARGUMENTS

*dev*

DRM device to create the new mode for

*cmd*

input command line modeline

## RETURNS

Pointer to converted mode on success, NULL on error.

## 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
