---
name: "dma_buf_map_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_map_attachment"
---

# dma\_buf\_map\_attachment(9)

Returns the scatterlist table of the attachment; mapped into \_device\_ address space. Is a wrapper for map\_dma\_buf of the dma\_buf\_ops.

## NAME

dma\_buf\_map\_attachment - Returns the scatterlist table of the attachment; mapped into \_device\_ address space. Is a wrapper for **map\_dma\_buf** of the dma\_buf\_ops.

## SYNOPSIS

**struct sg\_table \* dma\_buf\_map\_attachment(struct dma\_buf\_attachment \*** *attach***, enum dma\_data\_direction** *direction***);**

## ARGUMENTS

*attach*

\[in\] attachment whose scatterlist is to be returned

*direction*

\[in\] direction of DMA transfer

## DESCRIPTION

Returns sg\_table containing the scatterlist to be returned; returns ERR\_PTR on error.

## COPYRIGHT
