kstat_delete - remove a kstat from the system
#include <sys/types.h>
#include <sys/kstat.h>
void kstat_delete(kstat_t *ksp);
illumos DDI specific (illumos DDI)
ksp
Pointer to a currently installed
kstat(9S)
structure.
kstat_delete() removes ksp from the kstat chain and frees
all associated system resources.
kstat_delete() can be called from any context.
When calling kstat_delete(), the driver must not be holding that
kstat's ks_lock. Otherwise, it may deadlock with a kstat
reader.