MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                         scsilog(9F)



NAME
     scsilog - display a SCSI-device-related message

SYNOPSIS
     #include 
      #include 



     void scsilog(devinfot *dip, char *drvname, uintt level,
          const char *fmt, ...);


INTERFACE LEVEL
     Solaris DI specific (Solaris DI).

PARAMETERS
     dip         Pointer to the devinfo structure.


     drvname    String naming the device.


     level       Error level.


     fmt         Display format.


DESCRIPTION
     The scsilog() function is a utility function that  displays
     a message via the cmnerr(9F) routine. The error levels that
     can be passed in to this  function  are  CEPANIC,  CEWARN,
     CENOTE,  CECONT, and SCSIDEBUG. The last level is used to
     assist in displaying debug messages  to  the  console  only.
     drvname  is  the  short name by which this device is known;
     example disk driver names are sd and cmdk. If the devinfot
     pointer is NUL, then the drvname will be used with no unit
     or long name.


     If the first character in format is:

         o    An exclamation mark (!), the message goes  only  to
              the system buffer.

         o    A caret (^), the message goes only to the console.

         o    A question mark (?) and level is CECONT, the  mes-
              sage  is  always  sent to the system buffer, but is
              written to the console only  when  the  system  has
              been  booted  in  verbose  mode. See kernel(1M). If



SunOS 5.11          Last change: 16 Jan 2006                    1






Kernel Functions for Drivers                         scsilog(9F)



              neither condition is met, the ?  character  has  no
              effect and is simply ignored.


     All formatting conversions in use  by  cmnerr()  also  work
     with scsilog().

CONTEXT
     The scsilog() function may be called from user,  interrupt,
     or kernel context.

SEE ALSO
     kernel(1M), sd(7D), cmnerr(9F), scsierrmsg(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 ™