Name
dma_buf_export —
Creates a new dma_buf, and associates an anon file with this buffer, so it can be exported. Also connect the allocator specific data and ops to the buffer.
Synopsis
struct dma_buf * fsfuncdma_buf_export ( | void * priv, |
| const struct dma_buf_ops * ops, |
| size_t size, |
| int flags) ; |
Arguments
priv
[in] Attach private data of allocator to this buffer
ops
[in] Attach allocator-defined dma buf ops to the new buffer.
size
[in] Size of the buffer
flags
[in] mode flags for the file.
Description
Returns, on success, a newly created dma_buf object, which wraps the
supplied private data and operations for dma_buf_ops. On either missing
ops, or error in allocating struct dma_buf, will return negative error.