DMA_BUF_GET(9) Device drivers infrastructure DMA_BUF_GET(9)NAMEdma_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.
COPYRIGHTKernel Hackers Manual 3.8. June 2014 DMA_BUF_GET(9)