'\" t .\" Title: dma_buf_get .\" 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_GET" "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_get \- returns the dma_buf structure related to an fd .SH "SYNOPSIS" .HP \w'struct\ dma_buf\ *\ dma_buf_get('u .BI "struct dma_buf * dma_buf_get(int\ " "fd" ");" .SH "ARGUMENTS" .PP \fIfd\fR .RS 4 [in] fd associated with the dma_buf to be returned .RE .SH "DESCRIPTION" .PP On success, returns the dma_buf structure associated with an fd; uses file\*(Aqs refcounting done by fget to increase refcount\&. returns ERR_PTR otherwise\&. .SH "COPYRIGHT" .br