'\" t .\" Title: mpt_Soft_Hard_ResetHandler .\" 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 "MPT_SOFT_HARD_RESETH" "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" mpt_Soft_Hard_ResetHandler \- Try less expensive reset .SH "SYNOPSIS" .HP \w'int\ mpt_Soft_Hard_ResetHandler('u .BI "int mpt_Soft_Hard_ResetHandler(MPT_ADAPTER\ *\ " "ioc" ", int\ " "sleepFlag" ");" .SH "ARGUMENTS" .PP \fIioc\fR .RS 4 Pointer to MPT_ADAPTER structure .RE .PP \fIsleepFlag\fR .RS 4 Indicates if sleep or schedule must be called\&. .RE .SH "DESCRIPTION" .PP Returns 0 for SUCCESS or \-1 if FAILED\&. Try for softreset first, only if it fails go for expensive HardReset\&. .SH "COPYRIGHT" .br