mptscsih_IssueTaskMgmt — Generic send Task Management function.
int mptscsih_IssueTaskMgmt
(MPT_SCSI_HOST * hd, u8 type, u8 channel, u8 id, int lun, int ctx2abort, ulong timeout);
Pointer to MPT_SCSI_HOST structure
Task Management type
channel number for task management
Logical Target ID for reset (if appropriate)
Logical Unit for reset (if appropriate)
Context for the task to be aborted (if appropriate)
timeout for task management control
_HardResetHandler can be invoked from an interrupt thread (timer) or a non-interrupt thread. In the former, must not call schedule.
Not all fields are meaningfull for all task types.
Returns 0 for SUCCESS, or FAILED.