---
name: "mpt_register"
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_register"
---

# mpt\_register(9)

Register protocol-specific main callback handler.

## NAME

mpt\_register - Register protocol-specific main callback handler.

## SYNOPSIS

**u8 mpt\_register(MPT\_CALLBACK** *cbfunc***, MPT\_DRIVER\_CLASS** *dclass***, char \*** *func\_name***);**

## ARGUMENTS

*cbfunc*

callback function pointer

*dclass*

Protocol driver's class (**MPT\_DRIVER\_CLASS** enum value)

*func\_name*

call function's name

## DESCRIPTION

This routine is called by a protocol-specific driver (SCSI host, LAN, SCSI target) to register its reply callback routine. Each protocol-specific driver must do this before it will be able to use any IOC resources, such as obtaining request frames.

## NOTES

The SCSI protocol driver currently calls this routine thrice in order to register separate callbacks; one for “normal” SCSI IO; one for MptScsiTaskMgmt requests; one for Scan/DV requests.

Returns u8 valued “handle” in the range (and S.O.D. order) {N,...,7,6,5,...,1} if successful. A return value of MPT\_MAX\_PROTOCOL\_DRIVERS (including zero!) should be considered an error by the caller.

## COPYRIGHT
