'\" t .\" Title: dmam_pool_create .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Memory Management in Linux .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "DMAM_POOL_CREATE" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "Memory Management in Linux" .\" ----------------------------------------------------------------- .\" * 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" dmam_pool_create \- Managed \fBdma_pool_create\fR .SH "SYNOPSIS" .HP \w'struct\ dma_pool\ *\ dmam_pool_create('u .BI "struct dma_pool * dmam_pool_create(const\ char\ *\ " "name" ", struct\ device\ *\ " "dev" ", size_t\ " "size" ", size_t\ " "align" ", size_t\ " "allocation" ");" .SH "ARGUMENTS" .PP \fIconst char * name\fR .RS 4 name of pool, for diagnostics .RE .PP \fIstruct device * dev\fR .RS 4 device that will be doing the DMA .RE .PP \fIsize_t size\fR .RS 4 size of the blocks in this pool\&. .RE .PP \fIsize_t align\fR .RS 4 alignment requirement for blocks; must be a power of two .RE .PP \fIsize_t allocation\fR .RS 4 returned blocks won\*(Aqt cross this boundary (or zero) .RE .SH "DESCRIPTION" .PP Managed \fBdma_pool_create\fR\&. DMA pool created with this function is automatically destroyed on driver detach\&. .SH "COPYRIGHT" .br