'\" t .\" Title: hsi_alloc_msg .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: High Speed Synchronous Serial Interface (HSI) .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "HSI_ALLOC_MSG" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "High Speed Synchronous Serial" .\" ----------------------------------------------------------------- .\" * 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" hsi_alloc_msg \- Allocate an HSI message .SH "SYNOPSIS" .HP \w'struct\ hsi_msg\ *\ hsi_alloc_msg('u .BI "struct hsi_msg * hsi_alloc_msg(unsigned\ int\ " "nents" ", gfp_t\ " "flags" ");" .SH "ARGUMENTS" .PP \fInents\fR .RS 4 Number of memory entries .RE .PP \fIflags\fR .RS 4 Kernel allocation flags .RE .SH "DESCRIPTION" .PP nents can be 0\&. This mainly makes sense for read transfer\&. In that case, HSI drivers will call the complete callback when there is data to be read without consuming it\&. .PP Return NULL on failure or a pointer to an hsi_msg on success\&. .SH "COPYRIGHT" .br