dma_buf_detach(9)
πΈ NAME πΈ
okay so this is the dma_buf_detach(9) page from the Kernel API Manual, and it does exactly one iconic job: Remove the given attachment from dmabuf's attachments list. That's the whole vibe. π
β¨ SYNOPSIS β¨
void dma_buf_detach (struct dma_buf *dmabuf , struct dma_buf_attachment *attach );
π ARGUMENTS π
dmabufβ[in]buffer to detach from. Like, the buffer we're saying bye to π«Άattachβ[in]attachment to be detached; is free'd after this call. That's not a drill, bestie: it is free'd after this call π
π DESCRIPTION π
This is the cleanup girlie for a device attachment you got by calling dma_buf_attach. So if dma_buf_attach was the "hey bestie" moment, dma_buf_detach is the graceful exit. β¨
Optionally, this calls dma_buf_ops.detach for device-specific detach. So the generic detach can also do the device-specific one β optional, but very much part of the lore. π¦
π¦ SEE ALSO π¦
Kernel file: ./drivers/dma-buf/dma-buf.c
dma_buf_iter_begin(9)dma_buf_iter_next(9)implicit fence polling(9)dma_buf_set_name(9)dma buf device access(9)dma_buf_export(9)dma_buf_fd(9)dma_buf_fd_install(9)dma_buf_get(9)dma_buf_put(9)locking convention(9)dma_buf_dynamic_attach(9)dma_buf_attach(9)dma_buf_pin(9)dma_buf_unpin(9)dma_buf_map_attachment(9)dma_buf_map_attachment_unlocked(9)dma_buf_unmap_attachment(9)dma_buf_unmap_attachment_unlocked(9)dma_buf_attach_revocable(9)dma_buf_invalidate_mappings(9)cpu access(9)dma_buf_begin_cpu_access(9)dma_buf_end_cpu_access(9)dma_buf_mmap(9)dma_buf_vmap(9)dma_buf_vmap_unlocked(9)dma_buf_vunmap(9)dma_buf_vunmap_unlocked(9)
xoxo, source/version ./drivers/dma-buf, October 2026 π
π¦ 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