dma_buf_attach
Prev | Device Drivers DMA Management | Next

## Name

dma_buf_attach — Add the device to dma_buf's attachments list; optionally, calls `attach` of dma_buf_ops to allow device-specific attach functionality

## Synopsis

`struct dma_buf_attachment * dma_buf_attach (` | struct dma_buf * dmabuf,
| struct device * dev`)`;

## Arguments

`dmabuf`

  [in] buffer to attach device to.

`dev`

  [in] device to be attached.

## Description

Returns struct dma_buf_attachment * for this attachment; may return negative error codes.

Prev | Up | Next
dma_buf_put | Home | dma_buf_detach