amdgpu_dma_buf_detach(9)
π 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 upattachβ 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 π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.cβ the source, go read it, iykyk π PRIME Buffer Sharing(9)dma_buf_attach_adev(9)amdgpu_dma_buf_attach(9)amdgpu_dma_buf_pin(9)amdgpu_dma_buf_unpin(9)amdgpu_dma_buf_map(9)amdgpu_dma_buf_unmap(9)amdgpu_dma_buf_begin_cpu_access(9)amdgpu_gem_prime_export(9)amdgpu_dma_buf_create_obj(9)amdgpu_dma_buf_move_notify(9)amdgpu_gem_prime_import(9)amdgpu_dmabuf_is_xgmi_accessible(9)
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
- 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