ttm_bo_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ttm_bo_get(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes the actual kernel API manual, we're in the big leagues now 🫢 this one's a tiny little function but it's lowkey carrying the whole buffer-object reference game, so let's get into it ✨


🌸 NAME 🌸

ttm_bo_get β€” grab a reference on a struct ttm_buffer_object πŸ’–

like, you're telling the kernel "hey, I'm holding onto this one, don't you dare free it on me" πŸŽ€


✨ SYNOPSIS ✨

void ttm_bo_get (struct ttm_buffer_object *bo );

that's it. that's the whole vibe check. no fancy return value, no extra params, just vibes and a pointer πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • bo β€” the buffer object πŸ’… the one you're out here referencing. the main character, honestly πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/gpu/drm/ttm/ttm_bo_internal.h β€” go peek if you're nosy, iykyk 🧚
  • ttm_bo_get_unless_zero(9) β€” the iconic sibling function, different name different behavior, don't mix them up bestie 😭

ngl this one's short but don't sleep on it β€” referencing the wrong stuff in kernel land is giving πŸ’€ energy, fr fr

and that's the whole page, periodt ✨ this little gem lives in the source tree at ./drivers/gpu/drm/ttm, dated October 2026 β€” 🌈 slay, go forth and reference responsibly, bestie 🌈 πŸ’œπŸ“

πŸ“¦ where this page comes from