#include <sys/types.h> #include <sys/kstat.h>
Solaris DDI specific (Solaris DDI)
kstat_delete() removes ksp from the kstat chain and frees all associated system resources.
None.
kstat_delete() can be called from any context.
kstat_create(9F), kstat_install(9F), kstat_named_init(9F), kstat(9S)
Writing Device Drivers
When calling kstat_delete(), the driver must not be holding that kstat's ks_lock. Otherwise, it may deadlock with a kstat reader.