Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/os/freebsd/spl/sys/kstat.h
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | struct kstat_s { | ||||
kmutex_t *ks_lock; /* kstat data lock */ | kmutex_t *ks_lock; /* kstat data lock */ | ||||
struct list_head ks_list; /* kstat linkage */ | struct list_head ks_list; /* kstat linkage */ | ||||
kstat_module_t *ks_owner; /* kstat module linkage */ | kstat_module_t *ks_owner; /* kstat module linkage */ | ||||
kstat_raw_ops_t ks_raw_ops; /* ops table for raw type */ | kstat_raw_ops_t ks_raw_ops; /* ops table for raw type */ | ||||
char *ks_raw_buf; /* buf used for raw ops */ | char *ks_raw_buf; /* buf used for raw ops */ | ||||
size_t ks_raw_bufsize; /* size of raw ops buffer */ | size_t ks_raw_bufsize; /* size of raw ops buffer */ | ||||
struct sysctl_ctx_list ks_sysctl_ctx; | struct sysctl_ctx_list ks_sysctl_ctx; | ||||
struct sysctl_oid *ks_sysctl_root; | struct sysctl_oid *ks_sysctl_root; | ||||
}; | }; | ||||
typedef struct kstat_named_s { | typedef struct kstat_named_s { | ||||
char name[KSTAT_STRLEN]; /* name of counter */ | char name[KSTAT_STRLEN]; /* name of counter */ | ||||
uchar_t data_type; /* data type */ | uchar_t data_type; /* data type */ | ||||
union { | union { | ||||
char c[16]; /* 128-bit int */ | char c[16]; /* 128-bit int */ | ||||
int32_t i32; /* 32-bit signed int */ | int32_t i32; /* 32-bit signed int */ | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |