Manual page for kstat_named_init(9F)
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
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97