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.