MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Data Structures for Drivers                       kstatnamed(9S)



NAME
     kstatnamed - structure for named kstats

SYNOPSIS
     #include 
     #include 
     #include 
     #include 


INTERFACE LEVEL
     Solaris DI specific (Solaris DI)

DESCRIPTION
     Named kstats are an array of name-value pairs.  These  pairs
     are  kept  in  the  kstatnamed  structure.  When a kstat is
     created by kstatcreate(9F), the driver specifies  how  many
     of  these  structures  will be allocated. The structures are
     returned as an array pointed to by the ksdata field.

STRUCTURE MEMBERS
       union {
                 char                   c[16];
                 long                   l;
                 ulongt                ul;
                 longlongt             ll;
                 ulonglongt           ull;
       } value;  /* value of counter */



     The only member exposed to drivers is the value member. This
     field  is  a  union  of  several data types. The driver must
     specify  which  type  it   will   use   in   the   call   to
     kstatnamedinit().

SEE ALSO
     kstatcreate(9F), kstatnamedinit(9F)


     Writing Device Drivers














SunOS 5.11           Last change: 4 Apr 1994                    1



OpenSolaris man pages main menu

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