---
name: "mpt_do_upload"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mpt_do_upload"
---

# mpt\_do\_upload(9)

Construct and Send FWUpload request to MPT adapter port.

## NAME

mpt\_do\_upload - Construct and Send FWUpload request to MPT adapter port.

## SYNOPSIS

**int mpt\_do\_upload(MPT\_ADAPTER \*** *ioc***, int** *sleepFlag***);**

## ARGUMENTS

*ioc*

Pointer to MPT\_ADAPTER structure

*sleepFlag*

Specifies whether the process can sleep

## DESCRIPTION

Returns 0 for success, \>0 for handshake failure \<0 for fw upload failure.

## REMARK

If bound IOC and a successful FWUpload was performed on the bound IOC, the second image is discarded and memory is free'd. Both channels must upload to prevent IOC from running in degraded mode.

## COPYRIGHT
