'\" t .\" Title: dma_buf_attach .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DMA_BUF_ATTACH" "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_attach \- Add the device to dma_buf\*(Aqs attachments list; optionally, calls \fBattach\fR of dma_buf_ops to allow device\-specific attach functionality .SH "SYNOPSIS" .HP \w'struct\ dma_buf_attachment\ *\ dma_buf_attach('u .BI "struct dma_buf_attachment * dma_buf_attach(struct\ dma_buf\ *\ " "dmabuf" ", struct\ device\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fIdmabuf\fR .RS 4 [in] buffer to attach device to\&. .RE .PP \fIdev\fR .RS 4 [in] device to be attached\&. .RE .SH "DESCRIPTION" .PP Returns struct dma_buf_attachment * for this attachment; returns ERR_PTR on error\&. .SH "COPYRIGHT" .br