'\" t .\" Title: mpt_send_handshake_request .\" 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_SEND_HANDSHAKE_R" "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_send_handshake_request \- Send MPT request via doorbell handshake method\&. .SH "SYNOPSIS" .HP \w'int\ mpt_send_handshake_request('u .BI "int mpt_send_handshake_request(u8\ " "cb_idx" ", MPT_ADAPTER\ *\ " "ioc" ", int\ " "reqBytes" ", u32\ *\ " "req" ", int\ " "sleepFlag" ");" .SH "ARGUMENTS" .PP \fIcb_idx\fR .RS 4 Handle of registered MPT protocol driver .RE .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 \fIsleepFlag\fR .RS 4 Use schedule if CAN_SLEEP else use udelay\&. .RE .SH "DESCRIPTION" .PP This routine is used exclusively to send MptScsiTaskMgmt requests since they are required to be sent via doorbell handshake\&. .SH "NOTE" .PP It is the callers responsibility to byte\-swap fields in the request which are greater than 1 byte in size\&. .PP Returns 0 for success, non\-zero for failure\&. .SH "COPYRIGHT" .br