'\" t .\" Title: drm_property_add_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_ADD_ENU" "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_add_enum \- add a possible value to an enumeration property .SH "SYNOPSIS" .HP \w'int\ drm_property_add_enum('u .BI "int drm_property_add_enum(struct\ drm_property\ *\ " "property" ", int\ " "index" ", uint64_t\ " "value" ", const\ char\ *\ " "name" ");" .SH "ARGUMENTS" .PP \fIproperty\fR .RS 4 enumeration property to change .RE .PP \fIindex\fR .RS 4 index of the new enumeration .RE .PP \fIvalue\fR .RS 4 value of the new enumeration .RE .PP \fIname\fR .RS 4 symbolic name of the new enumeration .RE .SH "DESCRIPTION" .PP This functions adds enumerations to a property\&. .PP It\*(Aqs use is deprecated, drivers should use one of the more specific helpers to directly create the property with all enumerations already attached\&. .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