amdgpu_bo_ref(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

amdgpu_bo_ref β€” okay so this is the one that references an &amdgpu_bo buffer object ✨ (yes, that's the manual page name folded in right here, bestie β€” we're in the Kernel API Manual, section 9, and this is amdgpu_bo_ref(9) πŸŽ€)


🌸 SYNOPSIS 🌸

struct amdgpu_bo * amdgpu_bo_ref (struct amdgpu_bo *bo );

Like, that's the whole signature. Short. Iconic. No notes. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bo β€” an amdgpu_bo buffer object. That's it, that's the whole argument. The vibes are immaculate, the parameter list is one (1) item long 🫢

✨ DESCRIPTION ✨

So what does it actually do? It references the contained ttm_buffer_object. That's the move. That's the flex. It bumps the reference on the ttm_buffer_object that lives inside your amdgpu_bo, no cap πŸ”₯


πŸ‘‘ RETURN πŸ‘‘

You get back a refcounted pointer to the amdgpu_bo buffer object. Refcounted!! As in, this thing is now counted and you're holding a reference β€” treat it with the respect it deserves, main character energy only 🌈⭐


πŸŽ€ SEE ALSO πŸŽ€

The kernel file where all this lives, in all its glory:

  • ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

And the whole friend group, fr fr β€” every single one of these is in the (9) section:

Lowkey that's a lot of siblings and honestly? Slay. Go read them. Iykyk πŸ’œ

Okay bestie, that's the whole page 🧚 Coming to you from ./drivers/gpu/drm/amd/amdgpu, version dated October 2026, under the name amdgpu_bo_ref(9) β€” periodt. Now go reference something and stay hydrated πŸ’–πŸ“

πŸ“¦ where this page comes from