---
name: "mptscsih_TMHandler"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/mptscsih_TMHandler"
---

# mptscsih\_TMHandler(9)

Generic handler for SCSI Task Management.

## NAME

mptscsih\_TMHandler - Generic handler for SCSI Task Management.

## SYNOPSIS

**int mptscsih\_TMHandler(MPT\_SCSI\_HOST \*** *hd***, u8** *type***, u8** *channel***, u8** *id***, int** *lun***, int** *ctx2abort***, ulong** *timeout***);**

## ARGUMENTS

*hd*

Pointer to MPT SCSI HOST structure

*type*

Task Management type

*channel*

channel number for task management

*id*

Logical Target ID for reset (if appropriate)

*lun*

Logical Unit for reset (if appropriate)

*ctx2abort*

Context for the task to be aborted (if appropriate)

*timeout*

timeout for task management control

## FALL THROUGH TO MPT\_HARDRESETHANDLER IF

not operational, too many failed TM requests or handshake failure.

## REMARK

Currently invoked from a non-interrupt thread (\_bh).

## NOTE

With old EH code, at most 1 SCSI TaskMgmt function per IOC will be active.

Returns 0 for SUCCESS, or **FAILED**.

## COPYRIGHT
