'\" t .\" Title: drm_framebuffer_init .\" 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_FRAMEBUFFER_INIT" "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_framebuffer_init \- initialize a framebuffer .SH "SYNOPSIS" .HP \w'int\ drm_framebuffer_init('u .BI "int drm_framebuffer_init(struct\ drm_device\ *\ " "dev" ", struct\ drm_framebuffer\ *\ " "fb" ", const\ struct\ drm_framebuffer_funcs\ *\ " "funcs" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 DRM device .RE .PP \fIfb\fR .RS 4 framebuffer to be initialized .RE .PP \fIfuncs\fR .RS 4 \&.\&.\&. with these functions .RE .SH "DESCRIPTION" .PP Allocates an ID for the framebuffer\*(Aqs parent mode object, sets its mode functions & device file and adds it to the master fd list\&. .SH "IMPORTANT" .PP This functions publishes the fb and makes it available for concurrent access by other users\&. Which means by this point the fb _must_ be fully set up \- since all the fb attributes are invariant over its lifetime, no further locking but only correct reference counting is required\&. .SH "RETURNS" .PP Zero on success, error code on failure\&. .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