drm_object_...efault_value(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_object_...efault_value(9) β€” like, the Kernel API Manual bestie ✨

okay so real quick, before we even get into it: this whole page lives in section 9 of the Kernel API Manual and the star of the show is drm_object_property_get_default_value πŸŽ€ she's a mouthful, I know, but we move.


🌸 NAME 🌸

drm_object_property_get_default_value β€” retrieves the default value of a property when you're in atomic mode. that's it, that's the whole vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int drm_object_property_get_default_value (struct drm_mode_object *obj ,
struct drm_property *property , uint64_t *val );

like, exact signature, do not come for me if you typo it πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • obj β€” the drm mode object you're pulling a property value from. the main character of this operation, honestly 🫢
  • property β€” the property you actually wanna retrieve. the one you're obsessed with πŸ’–
  • val β€” your storage spot for the property value. bring your own uint64_t pointer, bestie, she doesn't allocate for you 🌸

πŸ‘‘ DESCRIPTION πŸ‘‘

so the way this works: this function retrieves the default state of the given property β€” as in, the default that got passed in to drm_object_attach_property. that's the source of truth, okay? iykyk πŸ’…

⚠️ okay important: only atomic drivers should call this function directly, because for non-atomic drivers it'll just return the current value instead. so if you're not atomic and you're expecting the default, you're gonna have a bad time 😭 no cap.

⭐ RETURN ⭐

  • Zero on success β€” slay, we love a clean exit πŸ’–
  • an error code on failure β€” not the vibe, but at least she tells you πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

kernel file: ./drivers/gpu/drm/drm_mode_object.c

and the whole friend group, in order, fr fr:


mwah πŸ’‹ that's the whole page. this little beauty ships from ./drivers/gpu/drm and the version stamp is dated October 2026 β€” go off, future kernel βœ¨πŸ¦‹ you ate, periodt. πŸ’œ

πŸ“¦ where this page comes from