drm_property_add_enum(9)
π drm_property_add_enum(9)
okay so bestie, welcome to the drm_property_add_enum(9) page β it lives in the Kernel API Manual, and honestly? it's a little vintage, but we're gonna stan it anyway π
β¨ NAME β¨
drm_property_add_enum β add a possible value to an enumeration property π¦
β¨ SYNOPSIS β¨
int drm_property_add_enum (struct drm_property *property , uint64_t
value , const char *name );
πΈ ARGUMENTS πΈ
propertyβ the enumeration property you're changing. this is the main character, she's getting a new value πvalueβ the actual value of the new enumeration. like, the number-number one π₯nameβ the symbolic name of the new enumeration. the cute label everyone will see π
π§ DESCRIPTION π§
so what does this function even do? it adds enumerations to a property. that's it. that's the whole vibe β¨
β οΈ okay but hear me out β its use is deprecated. drivers should use one of the more specific helpers to directly create the property with all enumerations already attached. no cap, this is the legacy route π
like, it works, but it's giving "old money" in the bad way. the specific helpers are right there, bestie, use those π«Ά
π RETURN π
Zero on success, error code on failure. zero = slay, anything else = bestie what happened π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_property.coverview(9) drm_property_create(9)drm_property_create_enum(9)drm_property_create_bitmask(9)drm_property_create_range(9)drm_property_create_signed_range(9)drm_property_create_object(9)drm_property_create_bool(9)drm_property_destroy(9)drm_property_create_blob(9)drm_property_blob_put(9)drm_property_blob_get(9)drm_property_lookup_blob(9)drm_property_replace_global_blob(9)drm_property_replace_blob(9)drm_property_replace_blob_from_id(9)
that's the whole page, bestie π this one's filed under ./drivers/gpu/drm and dated October 2026 β go forth and use the specific helpers, i'm literally begging ππΈ
π¦ 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