XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
drm_mode_get_property Struct Reference

#include <drm_mode.h>

Public Attributes

__u64 values_ptr
 
__u64 enum_blob_ptr
 
__u32 prop_id
 
__u32 flags
 
: Symbolic property name. User-space should use this field to

recognize properties.

char name [DRM_PROP_NAME_LEN]
 
__u32 count_values
 
__u32 count_enum_blobs
 

Detailed Description

struct drm_mode_get_property - Get property metadata.

User-space can perform a GETPROPERTY ioctl to retrieve information about a property. The same property may be attached to multiple objects, see "Modeset Base Object Abstraction".

The meaning of the @values_ptr field changes depending on the property type. See &drm_property.flags for more details.

The @enum_blob_ptr and @count_enum_blobs fields are only meaningful when the property has the type &DRM_MODE_PROP_ENUM or &DRM_MODE_PROP_BITMASK. For backwards compatibility, the kernel will always set @count_enum_blobs to zero when the property has the type &DRM_MODE_PROP_BLOB. User-space must ignore these two fields if the property has a different type.

User-space is expected to retrieve values and enums by performing this ioctl at least twice: the first time to retrieve the number of elements, the second time to retrieve the elements themselves.

To retrieve the number of elements, set @count_values and @count_enum_blobs to zero, then call the ioctl. @count_values will be updated with the number of elements. If the property has the type &DRM_MODE_PROP_ENUM or &DRM_MODE_PROP_BITMASK, @count_enum_blobs will be updated as well.

To retrieve the elements themselves, allocate an array for @values_ptr and set @count_values to its capacity. If the property has the type &DRM_MODE_PROP_ENUM or &DRM_MODE_PROP_BITMASK, allocate an array for @enum_blob_ptr and set @count_enum_blobs to its capacity. Calling the ioctl again will fill the arrays.

Member Data Documentation

◆ count_enum_blobs

__u32 drm_mode_get_property::count_enum_blobs

@count_enum_blobs: Number of elements in @enum_blob_ptr.

◆ count_values

__u32 drm_mode_get_property::count_values

@count_values: Number of elements in @values_ptr.

◆ enum_blob_ptr

__u64 drm_mode_get_property::enum_blob_ptr

@enum_blob_ptr: Pointer to a struct drm_mode_property_enum array.

◆ flags

__u32 drm_mode_get_property::flags

@flags: DRM_MODE_PROP_* bitfield. See &drm_property.flags for a definition of the flags.

◆ name

char drm_mode_get_property::name

◆ prop_id

__u32 drm_mode_get_property::prop_id

@prop_id: Object ID of the property which should be retrieved. Set by the caller.

◆ values_ptr

__u64 drm_mode_get_property::values_ptr

@values_ptr: Pointer to a __u64 array.


The documentation for this struct was generated from the following files: