drm_property_create — create a new property type
struct drm_property * drm_property_create ( | struct drm_device * dev, |
| int flags, | |
| const char * name, | |
int num_values); |
devdrm device
flagsflags specifying the property type
namename of the property
num_valuesnumber of pre-defined values
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.
Note that the DRM core keeps a per-device list of properties and that, if
drm_mode_config_cleanup is called, it will destroy all properties created
by the driver.