scsi_abort man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

SCSI_ABORT(9F)							SCSI_ABORT(9F)

NAME
       scsi_abort - abort a SCSI command

SYNOPSIS
       #include <sys/scsi/scsi.h>

       intscsi_abort(struct scsi_address *ap, struct scsi_pkt *pkt);

INTERFACE LEVEL
       Solaris DDI specific (Solaris DDI).

PARAMETERS
       ap
	      Pointer to a scsi_address structure.

       pkt
	      Pointer to a scsi_pkt(9S) structure.

DESCRIPTION
       The  scsi_abort()  function  terminates	a command that has been transā€
       ported 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
       The scsi_abort() function returns:

       1
	    on success.

       0
	    on failure.

CONTEXT
       The scsi_abort() function can be called from user, interrupt, or kernel
       context.

EXAMPLES
       Example 1 Terminating a command.

	 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)

       Writing Device Drivers

				 Jan 16, 2006			SCSI_ABORT(9F)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net