'\" t .\" Title: dma_release_from_coherent .\" 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_RELEASE_FROM_COH" "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_release_from_coherent \- try to free the memory allocated from per\-device coherent memory pool .SH "SYNOPSIS" .HP \w'int\ dma_release_from_coherent('u .BI "int dma_release_from_coherent(struct\ device\ *\ " "dev" ", int\ " "order" ", void\ *\ " "vaddr" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 device from which the memory was allocated .RE .PP \fIorder\fR .RS 4 the order of pages allocated .RE .PP \fIvaddr\fR .RS 4 virtual address of allocated pages .RE .SH "DESCRIPTION" .PP This checks whether the memory was allocated from the per\-device coherent memory pool and if so, releases that memory\&. .PP Returns 1 if we correctly released the memory, or 0 if \fBdma_release_coherent\fR should proceed with releasing memory from generic pools\&. .SH "COPYRIGHT" .br