[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    kstat_named(9S) manual page Table of Contents

Name

kstat_named - structure for named kstats

Synopsis


#include <sys/types.h>
#include <sys/kstat.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>

Interface Level

Solaris DDI specific (Solaris DDI)

Description

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

Structure Members

union {
l 2 l.
   char    c[16];
   long    l;
   ulong_t    ul;
   longlong_t    ll;
   u_longlong_t    ull;
l 2 l 2 l.
} 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 kstat_named_init().

See Also

kstat_create(9F) , kstat_named_init(9F)


Table of Contents