Query: scsi_abort
OS: opensolaris
Section: 9f
Links: opensolaris man pages all man pages
Forums: forum home forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
scsi_abort(9F) Kernel Functions for Drivers scsi_abort(9F)NAMEscsi_abort - abort a SCSI commandSYNOPSIS#include <sys/scsi/scsi.h> intscsi_abort(struct scsi_address *ap, struct scsi_pkt *pkt);INTERFACE LEVELSolaris DDI specific (Solaris DDI).PARAMETERSap Pointer to a scsi_address structure. pkt Pointer to a scsi_pkt(9S) structure.DESCRIPTIONThe scsi_abort() function 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 VALUESThe scsi_abort() function returns: 1 on success. 0 on failure.CONTEXTThe scsi_abort() function can be called from user, interrupt, or kernel context.EXAMPLESExample 1 Terminating a command. if (scsi_abort(&devp->sd_address, pkt) == 0) { (void) scsi_reset(&devp->sd_address, RESET_ALL); }SEE ALSOtran_abort(9E), scsi_reset(9F), scsi_pkt(9S) Writing Device Drivers SunOS 5.11 16 Jan 2006 scsi_abort(9F)