xref: /titanic_41/usr/src/man/man9f/kstat_delete.9f (revision fbe82215144da71ed02c3a920667472cc567fafd)
te
Copyright (c) 1994, 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]
KSTAT_DELETE 9F "Apr 4, 1994"
NAME
kstat_delete - remove a kstat from the system
SYNOPSIS

#include <sys/types.h>
#include <sys/kstat.h>



void kstat_delete(kstat_t *ksp);
INTERFACE LEVEL

Solaris DDI specific (Solaris DDI)

PARAMETERS
ksp

Pointer to a currently installed kstat(9S) structure.

DESCRIPTION

kstat_delete() removes ksp from the kstat chain and frees all associated system resources.

RETURN VALUES

None.

CONTEXT

kstat_delete() can be called from any context.

SEE ALSO

kstat_create(9F), kstat_install(9F), kstat_named_init(9F), kstat(9S)

Writing Device Drivers

NOTES

When calling kstat_delete(), the driver must not be holding that kstat's ks_lock. Otherwise, it may deadlock with a kstat reader.