dma_buf_get
Prev | Device Drivers DMA Management | Next

## Name

dma_buf_get — returns the dma_buf structure related to an fd

## Synopsis

`struct dma_buf * dma_buf_get (` | int fd`)`;

## Arguments

`fd`

  [in] fd associated with the dma_buf to be returned

## Description

On success, returns the dma_buf structure associated with an fd; uses file's refcounting done by fget to increase refcount. returns ERR_PTR otherwise.

Prev | Up | Next
dma_buf_fd | Home | dma_buf_put