---
name: "dma_buf_unmap_attachment"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/dma_buf_unmap_attachment"
---

# dma\_buf\_unmap\_attachment(9)

unmaps and decreases usecount of the buffer;might deallocate the scatterlist associated. Is a wrapper for unmap\_dma\_buf of dma\_buf\_ops.

## 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

## COPYRIGHT
