amdgpu_dma_buf_unpin(9)
π amdgpu_dma_buf_unpin(9)
okay bestie, welcome to the Kernel API Manual β this one's a tiny little function but she's lowkey important, so let's get into it π«Ά
β¨ NAME β¨
amdgpu_dma_buf_unpin β the &dma_buf_ops.unpin implementation, no cap π«
πΈ SYNOPSIS πΈ
void amdgpu_dma_buf_unpin (struct dma_buf_attachment *attach );
π ARGUMENTS π
attachβ the attachment to unpin π¦
β DESCRIPTION β
So the whole vibe here: this unpins a BO that was previously pinned, which makes it movable again β¨ literally that's it, that's the function. She un-pins. She frees the vibe. Iconic.
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c PRIME Buffer Sharing(9)dma_buf_attach_adev(9)amdgpu_dma_buf_attach(9)amdgpu_dma_buf_detach(9)amdgpu_dma_buf_pin(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 bestie,<pink>pin<cyan>pin</cyan>unpin</pink>β that's the whole lifecycle and you ate π
anyway that's the page π it lives over in ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β mwah, go read the source, ily, bye π
π¦ 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