amdgpu_bo_free_kernel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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):

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