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

Name

kstat_named_init - initialize a named kstat

Synopsis


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

void kstat_named_init(kstat_named_t *knp, char *name, uchar_t data_type);

Interface Level

Solaris DDI specific (Solaris DDI)

Arguments

knp
Pointer to a kstat_named(9S) structure.
name
The name of the statistic.
data_type
The type of value. This indicates which field of the kstat_named(9S) structure should be used. Valid values are:
KSTAT_DATA_CHAR
the "char" field.
KSTAT_DATA_LONG
the "long" field.
KSTAT_DATA_ULONG
the "unsigned long" field.
KSTAT_DATA_LONGLONG
the "long long" field.
KSTAT_DATA_ULONGLONG
the "unsigned long long" field.

Description

kstat_named_init() associates a name and a type with a kstat_named(9S) structure.

Return Values

None.

Context

kstat_named_init() can be called from user or kernel context.

See Also

kstat_create(9F) , kstat_install(9F) , kstat(9S) , kstat_named(9S)


Table of Contents