amdgpu_dma_buf_detach(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_dma_buf_detach(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual</> ✨ β€” this one's a lil function called amdgpu_dma_buf_detach, and honestly? She's short, she's sweet, she's iconic. Let's get into it πŸŽ€


🌸 NAME 🌸

amdgpu_dma_buf_detach β€” literally the &dma_buf_ops.detach implementation, no cap πŸ’…

✨ SYNOPSIS ✨

void amdgpu_dma_buf_detach (struct dma_buf *dmabuf , struct
       dma_buf_attachment *attach );

Like... she returns void, she takes two args, she minds her own business 🫢

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dmabuf β€” the DMA-buf where we remove the attachment from πŸ’– this is the one we're detaching from, bestie, keep up
  • attach β€” the attachment to remove πŸŽ€ the actual thing getting yeeted

πŸ”₯ DESCRIPTION πŸ”₯

Drop the runtime PM reference taken in amdgpu_dma_buf_attach.

That's it. That's the whole vibe. Attach takes a runtime PM reference, and detach gives it right back β€” it's giving responsible, it's giving balanced reference counting, it's giving main character energy ✨ Don't leave her hanging or you'll have a leak bestie, and we do NOT stan a leak πŸ˜­πŸ’€

🌈 SEE ALSO 🌈


fr fr go read the whole fam, they all ate πŸ’…βœ¨

and that's the whole page bestie, mwah πŸ“ β€” brought to you by ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and filed under amdgpu_dma_buf_detach(9). periodt. πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from