---
name: "mpt_send_handshake_request"
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_send_handshake_request"
---

# mpt\_send\_handshake\_request(9)

Send MPT request via doorbell handshake method.

## NAME

mpt\_send\_handshake\_request - Send MPT request via doorbell handshake method.

## SYNOPSIS

**int mpt\_send\_handshake\_request(u8** *cb\_idx***, MPT\_ADAPTER \*** *ioc***, int** *reqBytes***, u32 \*** *req***, int** *sleepFlag***);**

## ARGUMENTS

*cb\_idx*

Handle of registered MPT protocol driver

*ioc*

Pointer to MPT adapter structure

*reqBytes*

Size of the request in bytes

*req*

Pointer to MPT request frame

*sleepFlag*

Use schedule if CAN\_SLEEP else use udelay.

## DESCRIPTION

This routine is used exclusively to send MptScsiTaskMgmt requests since they are required to be sent via doorbell handshake.

## NOTE

It is the callers responsibility to byte-swap fields in the request which are greater than 1 byte in size.

Returns 0 for success, non-zero for failure.

## COPYRIGHT
