'\" t .\" Title: dma_buf_begin_cpu_access .\" 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_BEGIN_CPU_AC" "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_begin_cpu_access \- Must be called before accessing a dma_buf from the cpu in the kernel context\&. Calls begin_cpu_access to allow exporter\-specific preparations\&. Coherency is only guaranteed in the specified range for the specified access direction\&. .SH "SYNOPSIS" .HP \w'int\ dma_buf_begin_cpu_access('u .BI "int dma_buf_begin_cpu_access(struct\ dma_buf\ *\ " "dmabuf" ", size_t\ " "start" ", size_t\ " "len" ", enum\ dma_data_direction\ " "direction" ");" .SH "ARGUMENTS" .PP \fIdmabuf\fR .RS 4 [in] buffer to prepare cpu access for\&. .RE .PP \fIstart\fR .RS 4 [in] start of range for cpu access\&. .RE .PP \fIlen\fR .RS 4 [in] length of range for cpu access\&. .RE .PP \fIdirection\fR .RS 4 [in] length of range for cpu access\&. .RE .SH "DESCRIPTION" .PP Can return negative error values, returns 0 on success\&. .SH "COPYRIGHT" .br