'\" t .\" Title: drm_property_create_enum .\" 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_PROPERTY_CREATE_" "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_property_create_enum \- create a new enumeration property type .SH "SYNOPSIS" .HP \w'struct\ drm_property\ *\ drm_property_create_enum('u .BI "struct drm_property * drm_property_create_enum(struct\ drm_device\ *\ " "dev" ", int\ " "flags" ", const\ char\ *\ " "name" ", const\ struct\ drm_prop_enum_list\ *\ " "props" ", int\ " "num_values" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 drm device .RE .PP \fIflags\fR .RS 4 flags specifying the property type .RE .PP \fIname\fR .RS 4 name of the property .RE .PP \fIprops\fR .RS 4 enumeration lists with property values .RE .PP \fInum_values\fR .RS 4 number of pre\-defined values .RE .SH "DESCRIPTION" .PP This creates a new generic drm property which can then be attached to a drm object with drm_object_attach_property\&. The returned property object must be freed with drm_property_destroy\&. .PP Userspace is only allowed to set one of the predefined values for enumeration properties\&. .SH "RETURNS" .PP A pointer to the newly created property on success, NULL 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