dma_buf_unmap_attachment(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dma_buf_unmap_attachment(9) β€” Kernel API Manual bestie ✨

okay so welcome to the Kernel API Manual page for dma_buf_unmap_attachment(9). This is the unmap + usecount-drop situation, and the whole page is giving cleanup era in the best way. πŸ«ΆπŸ’–

🌸 NAME 🌸

dma_buf_unmap_attachment β€” unmaps and decreases usecount of the buffer;might deallocate the scatterlist associated. Is a wrapper for unmap_dma_buf() of dma_buf_ops. πŸ’…

✨ SYNOPSIS ✨

void dma_buf_unmap_attachment (struct dma_buf_attachment *attach ,
struct sg_table *sg_table , enum dma_data_direction direction );

πŸŽ€ ARGUMENTS πŸŽ€

  • attach β€” [in] attachment to unmap buffer from 🫢
  • sg_table β€” [in] scatterlist info of the buffer to unmap ✨
  • direction β€” [in] direction of DMA transfer πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

This unmaps a DMA mapping for attached obtained by dma_buf_map_attachment.

That's the whole plot, no cap. It's a wrapper for unmap_dma_buf() of dma_buf_ops β€” yes, the NAME section already spilled that, and we're keeping it. πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./drivers/dma-buf/dma-buf.c, plus the whole iconic crew:


okay that's the whole page, bestie. Cute sign-off: source/version is ./drivers/dma-buf, date is October 2026, and the page is dma_buf_unmap_attachment(9). Slay and bye! πŸ’–βœ¨

πŸ“¦ where this page comes from