'\" t .\" Title: hsi_async .\" 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_ASYNC" "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_async \- Submit an HSI transfer to the controller .SH "SYNOPSIS" .HP \w'int\ hsi_async('u .BI "int hsi_async(struct\ hsi_client\ *\ " "cl" ", struct\ hsi_msg\ *\ " "msg" ");" .SH "ARGUMENTS" .PP \fIcl\fR .RS 4 HSI client sending the transfer .RE .PP \fImsg\fR .RS 4 The HSI transfer passed to controller .RE .SH "DESCRIPTION" .PP The HSI message must have the channel, ttype, complete and destructor fields set beforehand\&. If nents > 0 then the client has to initialize also the scatterlists to point to the buffers to write to or read from\&. .PP HSI controllers relay on pre\-allocated buffers from their clients and they do not allocate buffers on their own\&. .PP Once the HSI message transfer finishes, the HSI controller calls the complete callback with the status and actual_len fields of the HSI message updated\&. The complete callback can be called before returning from hsi_async\&. .PP Returns \-errno on failure or 0 on success .SH "COPYRIGHT" .br