MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                       scsiabort(9F)



NAME
     scsiabort - abort a SCSI command

SYNOPSIS
     #include 



     intscsiabort(struct scsiaddress *ap, struct scsipkt *pkt);


INTERFACE LEVEL
     Solaris DI specific (Solaris DI).

PARAMETERS
     ap     Pointer to a scsiaddress structure.


     pkt    Pointer to a scsipkt(9S) structure.


DESCRIPTION
     The scsiabort() function terminates a command that has been
     transported  to  the  host adapter driver. A NUL pkt causes
     all outstanding packets  to  be  aborted.  On  a  successful
     abort,   the   pktreason   is   set   to   CMDABORTED  and
     pktstatistics is OR'ed with STATABORTED.

RETURN VALUES
     The scsiabort() function returns:

     1    on success.


     0    on failure.


CONTEXT
     The scsiabort() function can be called  from  user,  inter-
     rupt, or kernel context.

EXAMPLES
     Example 1 Terminating a command.

       if (scsiabort(&devp->sdaddress, pkt) == 0) {
               (void) scsireset(&devp->sdaddress, RESETAL);
       }


SEE ALSO
     tranabort(9E), scsireset(9F), scsipkt(9S)




SunOS 5.11          Last change: 16 Jan 2006                    1






Kernel Functions for Drivers                       scsiabort(9F)



     Writing Device Drivers






















































SunOS 5.11          Last change: 16 Jan 2006                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™