Go to main content

Writing Device Drivers in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

kstat2 Data Structures

The following table lists the available kstat2 data structures.

Table 45  Kstat2 Data Structures
Type
typedef
Description
struct kstat2
kstat2_t
Version2 kstat. For more information, see the kstat2(9S) man page.
struct kstat2_named
kstat2_named_t
Data type for all kstats. Providers have an array of data types in the kstat2's ks_data section. For more information, see the kstat2_named(9S) man page.
struct kstat2_named_str
kstat2_named_str_t
kstat data string type. For more information, see the kstat2_named(9S) man page.
struct kstat2_io
kstat2_io_t
Name-value pair array for I/O kstats (v1 KSTAT_TYPE_IO kstats). For more information, see the kstat2_io(9S) man page.
struct kstat2_intr
kstat2_intr_t
Name-value pair array (of one element) for interrupt kstats (version1 KSTAT_TYPE_INTR kstats). For more information, see the kstat2_intr(9S) man page.
struct kstat2_md
kstat2_md_t
Metadata associated with all v2 kstat name-value pairs. Used by userland kstat consumers to display the kstat content. For more information, see the kstat2_md(9S) man page.
struct kstat2_template
kstat2_template_t
Template to simplify kstat creation. For more information, see the kstat2_template(9S) man page.