'\" te .\" Copyright (c) 1994, Sun Microsystems, Inc., All Rights Reserved .TH kstat_delete 9F "4 Apr 1994" "SunOS 5.11" "Kernel Functions for Drivers" .SH NAME kstat_delete \- remove a kstat from the system .SH SYNOPSIS .LP .nf #include #include \fBvoid\fR \fBkstat_delete\fR(\fBkstat_t *\fR\fIksp\fR); .fi .SH INTERFACE LEVEL .sp .LP Solaris DDI specific (Solaris DDI) .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIksp\fR \fR .ad .RS 8n .rt Pointer to a currently installed \fBkstat\fR(9S) structure. .RE .SH DESCRIPTION .sp .LP \fBkstat_delete()\fR removes \fIksp\fR from the \fBkstat\fR chain and frees all associated system resources. .SH RETURN VALUES .sp .LP None. .SH CONTEXT .sp .LP \fBkstat_delete()\fR can be called from any context. .SH SEE ALSO .sp .LP \fBkstat_create\fR(9F), \fBkstat_install\fR(9F), \fBkstat_named_init\fR(9F), \fBkstat\fR(9S) .sp .LP \fIWriting Device Drivers for Oracle Solaris 11.2\fR .SH NOTES .sp .LP When calling \fBkstat_delete()\fR, the driver must not be holding that \fBkstat\fR's \fBks_lock\fR. Otherwise, it may deadlock with a \fBkstat\fR reader.