drm_property_create_object(9) create a new object property type

SYNOPSIS

struct drm_property * drm_property_create_object(struct drm_device * dev, int flags, const char * name, uint32_t type);

ARGUMENTS

dev

drm device

flags

flags specifying the property type

name

name of the property

type

object type from DRM_MODE_OBJECT_* defines

DESCRIPTION

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 this to any property value of the given type. Only useful for atomic properties, which is enforced.

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

Lukas Wunner <[email protected]>

vga_switcheroo documentation

COPYRIGHT