Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ scsi_abort(9F) — SunOS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

scsi_pkt(9S)

scsi_abort(9F)

NAME

scsi_abort − abort a SCSI command

SYNOPSIS

#include <sys/scsi/scsi.h>

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

ARGUMENTS

ap Pointer to a scsi_address structure. 

pkt Pointer to a scsi_pkt(9S) structure. 

INTERFACE LEVEL

SPARC architecture specific (SPARC DDI). 

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 updated. 

RETURN VALUES

scsi_abort() returns:

1 on success. 

0 on failure. 

CONTEXT

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

SEE ALSO

scsi_pkt(9S)

SunOS 5.1 Writing Device Drivers

SunOS 5.1  —  Last change: 17 Sep 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026