Writing Device Drivers

Kernel Statistics Functions

Table B–29 Kernel Statistics Functions

Function Name 

Description 

kstat_create

create and initialize a new kstat 

kstat_delete  

remove a kstat from the system 

kstat_install 

add a fully initialized kstat to the system 

kstat_named_init 

initialize a named kstat 

kstat_runq_back_to_waitq 

record transaction migration from run queue to wait queue 

kstat_runq_enter 

record transaction add to run queue 

kstat_runq_exit 

record transaction removal from run queue 

kstat_waitq_enter 

record transaction add to wait queue 

kstat_waitq_exit 

record transaction removal from wait queue 

kstat_waitq_to_runq 

record transaction migration from wait queue to run queue