amdgpu_bo_unref(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_bo_unref β€” bestie's guide to letting go

okay so this is a page from the Kernel API Manual, and honestly it's a short one but it's iconic in its own little way. we're talking about amdgpu_bo_unref(9) β€” the "say bye to your buffer object" function. let's get into it ✨


🌸 NAME 🌸

amdgpu_bo_unref β€” unreference an &amdgpu_bo buffer object πŸŽ€

like, you're dropping the reference. that's the whole vibe. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

void amdgpu_bo_unref (struct amdgpu_bo **bo );

it returns void, iykyk β€” nothing comes back, we love a function with no drama. and note that double star on bo, bestie, it's a pointer to a pointer πŸ‘€


🌈 ARGUMENTS 🌈

  • bo β€” the amdgpu_bo buffer object. that's it. that's the argument. go off πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

okay so here's what actually goes down: amdgpu_bo_unref unreferences the contained ttm_buffer_object and clears the pointer. so it's doing two things β€” dropping the ref on the ttm_buffer_object it contains, and then clearing out the pointer. tidy, clean, main character energy. 🧹✨

fr fr, the description is literally two concepts: unreference the contained ttm_buffer_object, and clear the pointer. simple. slay.


πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.c β€” that's where the magic happens, go read it if you're feeling brave πŸ’€

and here's the whole friend group, all the siblings and cousins, no gatekeeping:

look at that list. 36 entries. we're not skipping a single one, that's not the vibe πŸ’…


quick reminder bestie: amdgpu_bo_unref is the un-ref one β€” if you're looking for the opposite direction, that's amdgpu_bo_ref(9) up there in the see-also. don't mix them up, I'm begging 🫢

and that's the page!! πŸ“ this gem comes from ./drivers/gpu/drm/amd/amdgpu, dated October 2026. short little manpage, big slay energy. mwah πŸ’œβœ¨

πŸ“¦ where this page comes from