'\" t .\" Title: WaitForDoorbellInt .\" 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 "WAITFORDOORBELLINT" "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" WaitForDoorbellInt \- Wait for IOC to set its doorbell interrupt bit .SH "SYNOPSIS" .HP \w'int\ WaitForDoorbellInt('u .BI "int WaitForDoorbellInt(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 waits (up to ~2 seconds max) for IOC doorbell interrupt (MPI_HIS_DOORBELL_INTERRUPT) to be set in the IntStatus register\&. .PP Returns a negative value on failure, else wait loop count\&. .SH "COPYRIGHT" .br