9022 loader.efi: module placement must check memory map
[unleashed.git] / share / man / man9f / kstat_delete.9f
blob5e9b11c5228c51d7c9e4d9c68bdd464490415395
1 '\" te
2 .\" Copyright (c) 1994, Sun Microsystems, Inc., All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH KSTAT_DELETE 9F "Apr 4, 1994"
7 .SH NAME
8 kstat_delete \- remove a kstat from the system
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/types.h>
13 #include <sys/kstat.h>
17 \fBvoid\fR \fBkstat_delete\fR(\fBkstat_t *\fR\fIksp\fR);
18 .fi
20 .SH INTERFACE LEVEL
21 .sp
22 .LP
23 Solaris DDI specific (Solaris DDI)
24 .SH PARAMETERS
25 .sp
26 .ne 2
27 .na
28 \fB\fIksp\fR \fR
29 .ad
30 .RS 8n
31 Pointer to a currently installed \fBkstat\fR(9S) structure.
32 .RE
34 .SH DESCRIPTION
35 .sp
36 .LP
37 \fBkstat_delete()\fR removes \fIksp\fR from the \fBkstat\fR chain and frees all
38 associated system resources.
39 .SH RETURN VALUES
40 .sp
41 .LP
42 None.
43 .SH CONTEXT
44 .sp
45 .LP
46 \fBkstat_delete()\fR can be called from any context.
47 .SH SEE ALSO
48 .sp
49 .LP
50 \fBkstat_create\fR(9F), \fBkstat_install\fR(9F), \fBkstat_named_init\fR(9F),
51 \fBkstat\fR(9S)
52 .sp
53 .LP
54 \fIWriting Device Drivers\fR
55 .SH NOTES
56 .sp
57 .LP
58 When calling \fBkstat_delete()\fR, the driver must not be holding that
59 \fBkstat\fR's \fBks_lock\fR. Otherwise, it may deadlock with a \fBkstat\fR
60 reader.