'\" t .\" Title: hcd_buffer_create .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Host Controller APIs .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "HCD_BUFFER_CREATE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Host Controller APIs" .\" ----------------------------------------------------------------- .\" * 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" hcd_buffer_create \- initialize buffer pools .SH "SYNOPSIS" .HP \w'int\ hcd_buffer_create('u .BI "int hcd_buffer_create(struct\ usb_hcd\ *\ " "hcd" ");" .SH "ARGUMENTS" .PP \fIhcd\fR .RS 4 the bus whose buffer pools are to be initialized .RE .SH "CONTEXT" .PP !\fBin_interrupt\fR .SH "DESCRIPTION" .PP Call this as part of initializing a host controller that uses the dma memory allocators\&. It initializes some pools of dma\-coherent memory that will be shared by all drivers using that controller\&. .PP Call \fBhcd_buffer_destroy\fR to clean up after using those pools\&. .SH "RETURN" .PP 0 if successful\&. A negative errno value otherwise\&. .SH "COPYRIGHT" .br