amdgpu_dma_buf_unmap(9)
β¨ amdgpu_dma_buf_unmap(9) β¨
okay so this is a page from the Kernel API Manual, and bestie, we're about to get into it π
πΈ NAME πΈ
amdgpu_dma_buf_unmap β literally the &dma_buf_ops.unmap_dma_buf implementation π
π¦ SYNOPSIS π¦
void amdgpu_dma_buf_unmap (struct dma_buf_attachment *attach , struct
sg_table *sgt , enum dma_data_direction dir );
π ARGUMENTS π
attachβ the DMA-buf attachment, aka who's holding onto this thing π«Άsgtβ thesg_tableyou wanna unmapdirβ the DMA direction
π DESCRIPTION π
So here's the vibe: this gets called when a shared DMA buffer doesn't need to be reachable by some other device anymore. Somebody's leaving the group chat, it's fine, it happens π
For now? It just unpins the buffer from GTT. That's it. That's the whole character arc. No cap, that's all it does β¨
π SEE ALSO π
Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c β and honestly, the whole friend group:
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_unpin(9)amdgpu_dma_buf_map(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)
π reminder for my fellow gremlins: this page lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026. Don't @ me if you're reading it in the wrong tree π
ok bye bestie, go unmap something responsibly π§π
π¦ 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