drm_gem_object_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_gem_object_get(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ today's main character is drm_gem_object_get(9) and honestly she's a tiny little function with one job and she does it flawlessly πŸŽ€


✨ NAME ✨

drm_gem_object_get β€” acquire a GEM buffer object reference 🫢


🌸 SYNOPSIS 🌸

void drm_gem_object_get (struct drm_gem_object *obj );

that's it. that's the whole vibe check. void in, void out, reference acquired πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • obj β€” the GEM buffer object, aka the little guy you're about to hold onto for dear life πŸ₯Ί

⭐ DESCRIPTION ⭐

okay so here's the tea β˜• β€” this function acquires an additional reference to obj. one more ref, bestie. you're now officially holding a stake in it ✨

but like… it is illegal to call this without already holding a reference πŸ’€ no cap, that's not a vibe, that's a bug. you gotta already have one in your hand before you go grabbing more.

the good news?? No locks required. πŸ”“ literally none. zero. go off, no mutex needed, it's giving effortless 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr β€” all of these live in the kernel file ./include/drm/drm_gem.h:


and that's the whole page, bestie πŸ§šπŸ’œ sourced straight from ./include/drm, dated October 2026, page drm_gem_object_get(9) β€” slay, ate, no crumbs left πŸŒΈπŸ’…πŸ”₯

πŸ“¦ where this page comes from