'\" t .\" Title: drm_dev_alloc .\" 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_DEV_ALLOC" "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_dev_alloc \- Allocate new DRM device .SH "SYNOPSIS" .HP \w'struct\ drm_device\ *\ drm_dev_alloc('u .BI "struct drm_device * drm_dev_alloc(struct\ drm_driver\ *\ " "driver" ", struct\ device\ *\ " "parent" ");" .SH "ARGUMENTS" .PP \fIdriver\fR .RS 4 DRM driver to allocate device for .RE .PP \fIparent\fR .RS 4 Parent device object .RE .SH "DESCRIPTION" .PP Allocate and initialize a new DRM device\&. No device registration is done\&. Call \fBdrm_dev_register\fR to advertice the device to user space and register it with other core subsystems\&. .PP The initial ref\-count of the object is 1\&. Use \fBdrm_dev_ref\fR and \fBdrm_dev_unref\fR to take and drop further ref\-counts\&. .SH "RETURNS" .PP Pointer to new DRM device, or NULL if out of memory\&. .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