---
name: "drm_crtc_init_with_planes"
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_crtc_init_with_planes"
---

# drm\_crtc\_init\_with\_planes(9)

Initialise a new CRTC object with specified primary and cursor planes.

## NAME

drm\_crtc\_init\_with\_planes - Initialise a new CRTC object with specified primary and cursor planes.

## SYNOPSIS

**int drm\_crtc\_init\_with\_planes(struct drm\_device \*** *dev***, struct drm\_crtc \*** *crtc***, struct drm\_plane \*** *primary***, void \*** *cursor***, const struct drm\_crtc\_funcs \*** *funcs***);**

## ARGUMENTS

*dev*

DRM device

*crtc*

CRTC object to init

*primary*

Primary plane for CRTC

*cursor*

Cursor plane for CRTC

*funcs*

callbacks for the new CRTC

## DESCRIPTION

Inits a new object created as base part of a driver crtc object.

## RETURNS

Zero on success, error code on failure.

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