'\" t .\" Title: WaitForDoorbellReply .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Message-based devices .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "WAITFORDOORBELLREPLY" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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" WaitForDoorbellReply \- Wait for and capture an IOC handshake reply\&. .SH "SYNOPSIS" .HP \w'int\ WaitForDoorbellReply('u .BI "int WaitForDoorbellReply(MPT_ADAPTER\ *\ " "ioc" ", int\ " "howlong" ", int\ " "sleepFlag" ");" .SH "ARGUMENTS" .PP \fIioc\fR .RS 4 Pointer to MPT_ADAPTER structure .RE .PP \fIhowlong\fR .RS 4 How long to wait (in seconds) .RE .PP \fIsleepFlag\fR .RS 4 Specifies whether the process can sleep .RE .SH "DESCRIPTION" .PP This routine polls the IOC for a handshake reply, 16 bits at a time\&. Reply is cached to IOC private area large enough to hold a maximum of 128 bytes of reply data\&. .PP Returns a negative value on failure, else size of reply in WORDS\&. .SH "COPYRIGHT" .br