'\" t .\" Title: mpt_handshake_req_reply_wait .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Message-based devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "MPT_HANDSHAKE_REQ_RE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Message-based devices" .\" ----------------------------------------------------------------- .\" * 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" mpt_handshake_req_reply_wait \- Send MPT request to and receive reply from IOC via doorbell handshake method\&. .SH "SYNOPSIS" .HP \w'int\ mpt_handshake_req_reply_wait('u .BI "int mpt_handshake_req_reply_wait(MPT_ADAPTER\ *\ " "ioc" ", int\ " "reqBytes" ", u32\ *\ " "req" ", int\ " "replyBytes" ", u16\ *\ " "u16reply" ", int\ " "maxwait" ", int\ " "sleepFlag" ");" .SH "ARGUMENTS" .PP \fIioc\fR .RS 4 Pointer to MPT_ADAPTER structure .RE .PP \fIreqBytes\fR .RS 4 Size of the request in bytes .RE .PP \fIreq\fR .RS 4 Pointer to MPT request frame .RE .PP \fIreplyBytes\fR .RS 4 Expected size of the reply in bytes .RE .PP \fIu16reply\fR .RS 4 Pointer to area where reply should be written .RE .PP \fImaxwait\fR .RS 4 Max wait time for a reply (in seconds) .RE .PP \fIsleepFlag\fR .RS 4 Specifies whether the process can sleep .RE .SH "NOTES" .PP It is the callers responsibility to byte\-swap fields in the request which are greater than 1 byte in size\&. It is also the callers responsibility to byte\-swap response fields which are greater than 1 byte in size\&. .PP Returns 0 for success, non\-zero for failure\&. .SH "COPYRIGHT" .br