amdgpu_dma_buf_unmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the sg_table you wanna unmap
  • dir β€” 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:


πŸ’€ 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