llib-lkstat revision 7c478bd95313f5f23a4c958a745db2134aa03244
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran/*
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * CDDL HEADER START
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran *
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * The contents of this file are subject to the terms of the
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * Common Development and Distribution License, Version 1.0 only
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * (the "License"). You may not use this file except in compliance
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * with the License.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran *
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * or http://www.opensolaris.org/os/licensing.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * See the License for the specific language governing permissions
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * and limitations under the License.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran *
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * When distributing Covered Code, include this CDDL HEADER in each
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * If applicable, add the following below this CDDL HEADER, with the
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * fields enclosed by brackets "[]" replaced with your own identifying
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * information: Portions Copyright [yyyy] [name of copyright owner]
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran *
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * CDDL HEADER END
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran */
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran/* LINTLIBRARY */
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran/* PROTOLIB1 */
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran/*
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * Copyright (c) 1997 by Sun Microsystems, Inc.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * All rights reserved.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran */
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#pragma ident "%Z%%M% %I% %E% SMI"
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#include <stdlib.h>
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#include <stdio.h>
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#include <kstat.h>
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran/*
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran * usr/src/lib/libkstat
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran */
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran/* kstat.c */
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcorankstat_ctl_t *kstat_open(void);
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoranint kstat_close(kstat_ctl_t *);
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcorankid_t kstat_read(kstat_ctl_t *, kstat_t *, void *);
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcorankid_t kstat_write(kstat_ctl_t *, kstat_t *, void *);
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcorankid_t kstat_chain_update(kstat_ctl_t *);
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcorankstat_t *kstat_lookup(kstat_ctl_t *, char *, int, char *);
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoranvoid *kstat_data_lookup(kstat_t *, char *);
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran