'\" te .\" Copyright (c) 2000, Sun Microsystems, Inc., All Rights Reserved .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] .TH KSTAT_NAMED 9S "Apr 4, 1994" .SH NAME kstat_named \- structure for named kstats .SH SYNOPSIS .nf #include #include #include #include .fi .SH INTERFACE LEVEL illumos DDI specific (illumos DDI) .SH DESCRIPTION Named \fBkstats\fR are an array of name-value pairs. These pairs are kept in the \fBkstat_named\fR structure. When a \fBkstat\fR is created by \fBkstat_create\fR(9F), the driver specifies how many of these structures will be allocated. The structures are returned as an array pointed to by the \fBks_data\fR field. .SH STRUCTURE MEMBERS .in +2 .nf union { char c[16]; long l; ulong_t ul; longlong_t ll; u_longlong_t ull; } value; /* value of counter */ .fi .in -2 .sp .LP The only member exposed to drivers is the \fBvalue\fR member. This field is a union of several data types. The driver must specify which type it will use in the call to \fBkstat_named_init()\fR. .SH SEE ALSO .BR kstat_create (9F), .BR kstat_named_init (9F) .sp .LP \fIWriting Device Drivers\fR