1DMA_BUF_EXPORT(9)        Device drivers infrastructure       DMA_BUF_EXPORT(9)
2
3
4

NAME

6       dma_buf_export - Creates a new dma_buf, and associates an anon file
7       with this buffer, so it can be exported. Also connect the allocator
8       specific data and ops to the buffer. Additionally, provide a name
9       string for exporter; useful in debugging.
10

SYNOPSIS

12       struct dma_buf *
13                                       dma_buf_export(const struct dma_buf_export_info * exp_info);
14

ARGUMENTS

16       exp_info
17           [in] holds all the export related information provided by the
18           exporter. see struct dma_buf_export_info for further details.
19

DESCRIPTION

21       Returns, on success, a newly created dma_buf object, which wraps the
22       supplied private data and operations for dma_buf_ops. On either missing
23       ops, or error in allocating struct dma_buf, will return negative error.
24
25       For most cases the easiest way to create exp_info is through the
26       DEFINE_DMA_BUF_EXPORT_INFO macro.
27
29Kernel Hackers Manual 3.10         June 2019                 DMA_BUF_EXPORT(9)
Impressum