MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                   scsisensekey(9F)



NAME
     scsisensekey, scsisenseasc, scsisenseascq  -  retrieve
     fields from SCSI sense data

SYNOPSIS
     #include 



     uint8t scsisensekey(uint8t *sensebuffer);


     uint8t scsisenseasc(uint8t *sensebuffer);


     uint8t scsisenseascq(uint8t *sensebuffer);


INTERFACE LEVEL
     Solaris DI specific (Solaris DI).

PARAMETERS
     sensebuffer    Pointer to a buffer  containing  SCSI  sense
                     data.  The  sense  data  is expected in wire
                     format starting at the response code. It can
                     be in either fixed or descriptor format.


DESCRIPTION
     The scsisensekey() function returns the  sense  key  value
     from the sense data contained in the sensebuffer.


     The scsisenseasc() function returns the  additional  sense
     code  (ASC)  value  from  the  sense  data  contained in the
     sensebuffer.


     The scsisenseascq() function returns the additional  sense
     code qualifier (ASCQ) value from the sense data contained in
     the sensebuffer.


     The      scsisensekey(),       scsisenseasc(),       and
     scsisenseascq() functions are used to retrieve values from
     SCSI sense data, regardles of whether the sense data  is  in
     fixed format or descriptor format.


     Drivers should use scsivalidatesense(9F)  to  ensure  that
     valid  sense  key,  asc,  and ascq values are present in the
     sense data.



SunOS 5.11          Last change: 28 Jun 2006                    1






Kernel Functions for Drivers                   scsisensekey(9F)



RETURN VALUES
     The scsisensekey() function returns the  sense  key  value
     from the sense buffer. The scsisenseasc() function returns
     the additional sense code (ASC) from the  sense  buffer  and
     the  scsisenseascq() function returns the additional sense
     code qualifier (ASCQ) from the sense buffer.

CONTEXT
     The      scsisensekey(),       scsisenseasc(),       and
     scsisenseascq()  functions  can  be  called  from  user or
     interrupt context.

SEE ALSO
     scsiextsensefields(9F),        scsifindsensedescr(9F),
     scsisensecmdspecificuint64(9F),
     scsisenseinfouint64(9F), scsivalidatesense(9F)







































SunOS 5.11          Last change: 28 Jun 2006                    2



OpenSolaris man pages main menu

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