scsi_tmf_code_t Structure

The scsi_tmf_code_t specifies Task Management Function.

typedef enum scsi_tmf_code {SCSI_TMF_UNKNOWN, SCSI_TMF_ABORT_TASK,
            SCSI_TMF_ABORT_TASK_SET, SCSI_TMF_CLEAR_ACA,
            SCSI_TMF_CLEAR_TASK_SET, SCSI_TMF_I_T_NEXUS_RESET,
            SCSI_TMF_LOGICAL_UNIT_RESET, SCSI_TMF_TARGET_RESET,
            SCSI_TMF_WAKEUP, SCSI_TMF_QUERY_TASK} scsi_tmf_code_t

Task ID is used only with ABORT_TASK and QUERY_TASK TMF to specify I_T_L_Q nexus with scsi_addr_t information.

If the TMF result is 1 then the function execution is a success. If the TMF result is 0 then the function execution is a failure.

Note:

Only HBA drivers which implement SCSI_HBA_ADDR_COMPLEX addressing method and utilize scsi_hba_pkt_comp(9F) are supported by the scsi provider. All SCSAv3 HBA drivers, scsi_vhci, fcp, and iscsi comply to this requirement.

The probe cmd-response might not fire and some addressing information might not be available with non-complying HBA drivers.

Note:

The scsi_data_t is provided only when HBA drivers implement tran_setup_pkt(9E). For example, SCSAv3 HBA drivers and fcp comply to this requirement.

Some simple examples of scsi provider usage follow.