---
name: "drm_mode_create"
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"
---

# drm\_mode\_create(9)

create a new display mode

## NAME

drm\_mode\_create - create a new display mode

## SYNOPSIS

**struct drm\_display\_mode \* drm\_mode\_create(struct drm\_device \*** *dev***);**

## ARGUMENTS

*dev*

DRM device

## DESCRIPTION

Create a new, cleared drm\_display\_mode with kzalloc, allocate an ID for it and return it.

## RETURNS

Pointer to new 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
