drm_mode_object_get(9)
π drm_mode_object_get(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to drm_mode_object_get(9) from the kernel API manual. this is the whole page, and yes it's short, but it's iconic short. let's get into it π
β¨ NAME β¨
drm_mode_object_get β acquire a mode object reference
like, you're grabbing a reference. that's the whole vibe. π«Ά
πΈ SYNOPSIS πΈ
void drm_mode_object_get (struct drm_mode_object *obj );
that's it. one function, one argument, returns nothing (void, she's humble like that). β¨
π¦ ARGUMENTS π¦
objβ a DRM mode object. literally just the object you're about to grab a reference on. main character energy, honestly. π
π DESCRIPTION π
okay so here's what's actually happening: this function increments the object's refcount if it's a refcounted modeset object. slay. π
and if it's not one of those? it's a no-op β nothing happens, she simply does not engage. no cap. π
references you take here should be dropped again by calling drm_mode_object_put. like, you gotta give them back, bestie, that's the whole social contract. π₯
π SEE ALSO π
kernel file ./drivers/gpu/drm/drm_mode_object.c β go read it, iykyk π
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_object_attach_property(9)drm_object_property_set_value(9)drm_object_property_get_value(9)drm_object_property_get_default_value(9)drm_object_immutable_property_get_value(9)drm_mode_obj_get_properties_ioctl(9)
the whole friend group, fr fr π
reminder bestie:getmeans you now owe aput. don't leave your references hanging, that's not the vibe. π
and that's the page!! π this little gem lives under ./drivers/gpu/drm and the manual is dated October 2026 β so mark your calendar, she's from the future. π bye bestie, go increment something responsibly π§ββοΈβ¨
π¦ 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