drm_mode_object_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

the whole friend group, fr fr 🌈


reminder bestie: get means you now owe a put. 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