Go to main content

Writing Device Drivers in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

Kernel Statistics Functions

The kernel statistics (kstats) functions are:

kstat2_create()

Create and initialize a new kstat

kstat2_delete()

Remove a kstat from the system

kstat2_create_with_template()

Create a kstat using a template

kstat2_create_histogram()

Create a histogram kstat

kstat2_install()

Mark a fully initialized kstat as ready to read

kstat2_hist_add_value()

Add a single value to a histogram kstat

kstat2_nv_init()

Initialize a named kstat

kstat2_nv_setstr()

Initialize a named stat with an array of strings

kstat2_nv_setstrs()

Initialize a named stat with an array of strings

kstat2_nv setints()

Initialize a named stat with an array of integers

kstat2_runq_back_to_waitq()

Record a transaction migration from run queue to the wait queue

kstat2_runq_enter()

Record a transaction addition to the run queue

kstat2_runq_exit()

Record a transaction removal from the run queue

kstat2_waitq_enter()

Record a transaction addition to the wait queue

kstat2_waitq_exit()

Record a transaction removal from the wait queue

kstat2_waitq_to_runq()

Record a transaction migration from the wait queue to the run queue