'\" t .\" Title: dma_buf_export_named .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "DMA_BUF_EXPORT_NAMED" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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_named \- 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_named('u .BI "struct dma_buf * dma_buf_export_named(void\ *\ " "priv" ", const\ struct\ dma_buf_ops\ *\ " "ops" ", size_t\ " "size" ", int\ " "flags" ", const\ char\ *\ " "exp_name" ");" .SH "ARGUMENTS" .PP \fIpriv\fR .RS 4 [in] Attach private data of allocator to this buffer .RE .PP \fIops\fR .RS 4 [in] Attach allocator\-defined dma buf ops to the new buffer\&. .RE .PP \fIsize\fR .RS 4 [in] Size of the buffer .RE .PP \fIflags\fR .RS 4 [in] mode flags for the file\&. .RE .PP \fIexp_name\fR .RS 4 [in] name of the exporting module \- useful for debugging\&. .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