amdgpu_bo_ref(9)
π 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β anamdgpu_bobuffer 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:
amdgpu_object(9)amdgpu_bo_is_amdgpu_bo(9)amdgpu_bo_placement_from_domain(9)amdgpu_bo_create_reserved(9)amdgpu_bo_create_kernel(9)amdgpu_bo_create_isp_user(9)amdgpu_bo_create_kernel_at(9)amdgpu_bo_free_kernel(9)amdgpu_bo_free_isp_user(9)amdgpu_bo_create(9)amdgpu_bo_create_user(9)amdgpu_bo_create_vm(9)amdgpu_bo_kmap(9)amdgpu_bo_kptr(9)amdgpu_bo_kunmap(9)amdgpu_bo_unref(9)amdgpu_bo_pin(9)amdgpu_bo_unpin(9)amdgpu_bo_init(9)amdgpu_bo_fini(9)amdgpu_bo_set_tiling_flags(9)amdgpu_bo_get_tiling_flags(9)amdgpu_bo_set_metadata(9)amdgpu_bo_get_metadata(9)amdgpu_bo_move_notify(9)amdgpu_bo_release_notify(9)amdgpu_bo_fault_reserve_notify(9)amdgpu_bo_fence(9)amdgpu_bo_sync_wait_resv(9)amdgpu_bo_sync_wait(9)amdgpu_bo_gpu_offset(9)amdgpu_bo_fb_aper_addr(9)amdgpu_bo_gpu_offset_no_check(9)amdgpu_bo_mem_stats_placement(9)amdgpu_bo_get_preferred_domain(9)amdgpu_bo_print_info(9)
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
- 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