'\" t .\" Title: dma_buf_map_attachment .\" 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_MAP_ATTACHME" "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_map_attachment \- Returns the scatterlist table of the attachment; mapped into _device_ address space\&. Is a wrapper for \fBmap_dma_buf\fR of the dma_buf_ops\&. .SH "SYNOPSIS" .HP \w'struct\ sg_table\ *\ dma_buf_map_attachment('u .BI "struct sg_table * dma_buf_map_attachment(struct\ dma_buf_attachment\ *\ " "attach" ", enum\ dma_data_direction\ " "direction" ");" .SH "ARGUMENTS" .PP \fIattach\fR .RS 4 [in] attachment whose scatterlist is to be returned .RE .PP \fIdirection\fR .RS 4 [in] direction of DMA transfer .RE .SH "DESCRIPTION" .PP Returns sg_table containing the scatterlist to be returned; returns ERR_PTR on error\&. .SH "COPYRIGHT" .br