amdgpu_bo_free_kernel(9)
π
amdgpu_bo_free_kernel(9) β like, the whole kernel API manual moment
okay so bestie, welcome to amdgpu_bo_free_kernel from the Kernel API Manual β yes that's the manual name, no I'm not gonna make you read it twice, you're welcome π«Ά
β¨ NAME β¨
amdgpu_bo_free_kernel β free BO for kernel use, bestie. that's it. that's the vibe. π
π SYNOPSIS π
void amdgpu_bo_free_kernel (struct amdgpu_bo **bo , u64 *gpu_addr , void
**cpu_addr );
literally three args and it's done, no cap β¨
πΈ ARGUMENTS πΈ
boβ the amdgpu BO you're freeing. the main character here. bye bo πgpu_addrβ a pointer to where the BO's GPU memory space address was stored. where it was, past tense, because it's about to be gone πcpu_addrβ a pointer to where the BO's CPU memory space address was stored. same energy, same past tense π
π¦ DESCRIPTION π¦
so what it does: it unmaps and unpins a BO for kernel internal use. that's the whole thing. clean, simple, iconic π₯
and here's the part that's kind of a slay β this function is exported so that the V4L2 isp device, which lives external to the drm device, can free the kernel BO too. cross-device friendship, we love to see it π«Άβ¨
β SEE ALSO β
the source file itself, in all its glory:
Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
and nowβ¦ the whole friend group π (yes I listed every single one, I would never do you dirty like that):
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_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_ref(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)
like, that's the whole squad, go read them too, iykyk ππ
and that's the page! π this little number lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's amdgpu_bo_free_kernel(9) from the Kernel API Manual. go free those BOs responsibly, bestie πππ
π¦ 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