'\" t .\" Title: drm_mode_duplicate .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: DRM Core .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "DRM_MODE_DUPLICATE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "DRM Core" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" drm_mode_duplicate \- allocate and duplicate an existing mode .SH "SYNOPSIS" .HP \w'struct\ drm_display_mode\ *\ drm_mode_duplicate('u .BI "struct drm_display_mode * drm_mode_duplicate(struct\ drm_device\ *\ " "dev" ", const\ struct\ drm_display_mode\ *\ " "mode" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 drm_device to allocate the duplicated mode for .RE .PP \fImode\fR .RS 4 mode to duplicate .RE .SH "DESCRIPTION" .PP Just allocate a new mode, copy the existing mode into it, and return a pointer to it\&. Used to create new instances of established modes\&. .SH "RETURNS" .PP Pointer to duplicated mode on success, NULL on error\&. .SH "AUTHORS" .PP \fBJesse Barnes\fR <\&jesse.barnes@intel.com\&> .br Intel Corporation, .RS 4 Initial version .RE .PP \fBLaurent Pinchart\fR <\&laurent.pinchart@ideasonboard.com\&> .br Ideas on board SPRL, .RS 4 Driver internals .RE .PP \fBDaniel Vetter\fR <\&daniel.vetter@ffwll.ch\&> .br Intel Corporation, .RS 4 Contributions all over the place .RE .SH "COPYRIGHT" .br