Data Structures for Drivers kstat_named(9S)
NAME
kstat_named - structure for named kstats
SYNOPSIS
#include
#include
#include
#include
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. The structures arereturned as an array pointed to by the ks_data field.
STRUCTURE MEMBERS union { char c[16]; long l;ulong_t ul;
longlong_t ll;
u_longlong_t 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 tokstat_named_init().
SEE ALSO
kstat_create(9F), kstat_named_init(9F)
Writing Device DriversSunOS 5.11 Last change: 4 Apr 1994 1