drm_object_...efault_value(9)
π 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 ownuint64_tpointer, 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 β
Zeroon 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:
drm_mode_object_add(9)drm_mode_object_unregister(9)drm_mode_object_lease_required(9)drm_mode_object_find(9)drm_mode_object_put(9)drm_mode_object_get(9)drm_object_attach_property(9)drm_object_property_set_value(9)drm_object_property_get_value(9)drm_object_immutable_property_get_value(9)drm_mode_obj_get_properties_ioctl(9)
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
- 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