'\" t .\" Title: mpt_do_upload .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Message-based devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "MPT_DO_UPLOAD" "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_do_upload \- Construct and Send FWUpload request to MPT adapter port\&. .SH "SYNOPSIS" .HP \w'int\ mpt_do_upload('u .BI "int mpt_do_upload(MPT_ADAPTER\ *\ " "ioc" ", int\ " "sleepFlag" ");" .SH "ARGUMENTS" .PP \fIioc\fR .RS 4 Pointer to MPT_ADAPTER structure .RE .PP \fIsleepFlag\fR .RS 4 Specifies whether the process can sleep .RE .SH "DESCRIPTION" .PP Returns 0 for success, >0 for handshake failure <0 for fw upload failure\&. .PP Remark: If bound IOC and a successful FWUpload was performed on the bound IOC, the second image is discarded and memory is free\*(Aqd\&. Both channels must upload to prevent IOC from running in degraded mode\&. .SH "COPYRIGHT" .br