'\" t .\" Title: dma_buf_export .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DMA_BUF_EXPORT" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "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\&. Additionally, provide a name string for exporter; useful in debugging\&. .SH "SYNOPSIS" .HP \w'struct\ dma_buf\ *\ dma_buf_export('u .BI "struct dma_buf * dma_buf_export(const\ struct\ dma_buf_export_info\ *\ " "exp_info" ");" .SH "ARGUMENTS" .PP \fIexp_info\fR .RS 4 [in] holds all the export related information provided by the exporter\&. see struct dma_buf_export_info for further details\&. .RE .SH "DESCRIPTION" .PP 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\&. .SH "COPYRIGHT" .br