STRUCT DRM_PROPERTY_ENUM(9)
π struct drm_property_enum(9)
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is struct drm_property_enum, and honestly? she's giving "tiny struct, big responsibilities." let's get into it π
β¨ NAME β¨
struct drm_property_enum β symbolic values for enumerations π
like, she's the reason your enum values have cute little names instead of just being mystery numbers. iconic behavior fr fr.
π¦ SYNOPSIS π¦
struct drm_property_enum {
uint64_t value;
struct list_head head;
char name[DRM_PROP_NAME_LEN];
};
look at her. three fields. no notes. π«Ά
πΈ Members πΈ
valueβ the numeric property value for this enum entry β¨
okay so heads up, this is the part you gotta read carefully: if the property has the type DRM_MODE_PROP_BITMASK, then value stores a bitshift, not a bitmask. π« like, in other words, the enum entry is enabled if the bit number value is set in the property's value. so this enum entry has the bitmask 1 << value. yes, that's a shift, not a mask β do not get it twisted bestie π
headβ the list of enum values, linked todrm_property.enum_listπ
she's on a list. literally. it's a linked list situation and she's connected to drm_property.enum_list.
nameβ symbolic name for the enum π·οΈ
the cute human-readable label. the vibe check of the struct, if you will.
π Description π
so for enumeration and bitmask properties, this structure stores the symbolic decoding for each value π§ and like, a real example: it's used for the rotation property. rotating things, but make it symbolic. periodt. π«
π₯ SEE ALSO π₯
Kernel file ./include/drm/drm_property.h β plus these besties:
struct drm_property(9)struct drm_property_blob(9)drm_property_type_is(9)drm_property_find(9)
okay and that's the whole page! π sources say this lives over in ./include/drm, dated October 2026, and she goes by struct drm_property_enum(9) β mwah π go forth and enumerate, queen ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms