carta
drm_property_create_enum(9)

drm_property_create_enum9

Create a new enumeration property type

Arguments

dev

drm device

flags

flags specifying the property type

name

name of the property

props

enumeration lists with property values

num_values

number of pre-defined values

Overview

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.

Userspace is only allowed to set one of the predefined values for enumeration properties.

Returns

A pointer to the newly created property on success, NULL on failure.

Authors

Jesse Barnes <[email protected]>
Intel Corporation,

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,

Contributions all over the place

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.