kstat_named_init(9F) manual page
Table of Contents
kstat_named_init - initialize a named kstat
#include <sys/types.h>
#include <sys/kstat.h>
void kstat_named_init(kstat_named_t *knp, char *name, uchar_t data_type);
Solaris DDI specific (Solaris DDI)
- 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.
kstat_named_init() associates a name and a type with a kstat_named(9S)
structure.
None.
kstat_named_init() can be called from
user or kernel context.
kstat_create(9F)
, kstat_install(9F)
, kstat(9S)
,
kstat_named(9S)
Table of Contents