STRUCT DRM_PROPERTY_ENUM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to drm_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:


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