[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    scsi_abort(9F) manual page Table of Contents

Name

scsi_abort - abort a SCSI command

Synopsis

#include <sys/scsi/scsi.h>

int scsi_abort(struct scsi_address *ap, struct scsi_pkt *pkt);

Interface Level

Solaris DDI specific (Solaris DDI).

Arguments

ap
Pointer to a scsi_address structure.
pkt
Pointer to a scsi_pkt(9S) structure.

Description

scsi_abort() terminates a command that has been transported to the host adapter driver. A NULL pkt causes all outstanding packets to be aborted. On a successful abort, the pkt_reason is set to CMD_ABORTED and pkt_statistics is OR ’ed with STAT_ABORTED .

Return Values

scsi_abort() returns:
  1. on success.
  2. on failure.

Context

scsi_abort() can be called from user or interrupt context.

Example


    if (scsi_abort(&devp->sd_address, pkt) == 0) {
            (void) scsi_reset(&devp->sd_address, RESET_ALL);
    }

See Also

tran_abort(9E) , scsi_reset(9F) , scsi_pkt(9S)


Table of Contents