---
name: "drm_property_add_enum"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_property_add_enum"
---

# drm\_property\_add\_enum(9)

add a possible value to an enumeration property

## NAME

drm\_property\_add\_enum - add a possible value to an enumeration property

## SYNOPSIS

**int drm\_property\_add\_enum(struct drm\_property \*** *property***, int** *index***, uint64\_t** *value***, const char \*** *name***);**

## ARGUMENTS

*property*

enumeration property to change

*index*

index of the new enumeration

*value*

value of the new enumeration

*name*

symbolic name of the new enumeration

## DESCRIPTION

This functions adds enumerations to a property.

It's use is deprecated, drivers should use one of the more specific helpers to directly create the property with all enumerations already attached.

## RETURNS

Zero on success, error code on failure.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
