drm_property_add_enum(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈


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