|
|
|
kstat_create
|
kstat2_t * kstat2_create(const char *ks_pseg[], uchar_t
npseg zoneid_t ks_zone, kstat2_named_t *ks_data, uint_t
ks_ndata, uchar_t ks_flags, const kstat2_md_t *ks_metadata,
const char *desc, kstat2_metaflag_t ks_mflags);
|
|
-
|
kstat2_t * kstat2_create_with_template(const char
*ks_pseg[], uchar_t npseg, zoneid_t ks_zone, kstat2_template_t
*ks_tmpl, uchar_t ks_flags, kstat2_named_t *ks_data, const char
*desc, kstat2_metaflag_t ks_mflags);
|
This is a new API that was not available in the older
kstat.
|
-
|
kstat2_t * kstat2_create_histogram(const char *ks_pseg[],
uchar_t npseg, zoneid_t ks_zone, kstat2_nv_hist_type_t type,
kstat2_nv_metatype_t content_type, uint64_t scale,
kstat2_nv_metaflag_t md_flags, uint64_t *buckets, uint16_t
num_buckets, uint64_t range_min, uint64_t range_max, uint64_t
stepping, uchar_t ks_flags, const char *desc, kstat2_metaflag_t
ks_mflags);
|
This is a new API that was not available in the older
kstat.
|
-
|
kstat2_template_t * kstat2_lookup_template(uchar_t
tmpl_id);
|
This is a new API that was not available in the older
kstat.
Looks for a system template. For example, I/O,
INTR, older TIMER
kstat equivalents. For more information, see the
kstat2_lookup_template(9F) man page.
|
-
|
int kstat2_set_v1_names(kstat2_t *ksp, const char *class,
const char *module, const char *name, int
instance);
|
This is a new API that was not available in the older
kstat.
Set the fields: ks_class,
ks_module, ks_name,
and ks_instance in the kstat.
For more information, see the kstat2_set_v1_names(9F) man page.
|
kstat_install
|
void kstat2_install(kstat2_t *ksp);
|
|
kstat_delete
|
void kstat2_delete(kstat2_t *ksp);
|
|
-
|
void kstat2_delete_zone(kid_t kid, zoneid_t
zoneid);
|
Looks up a kstat by using kstat ID and deletes
it. For more information, see the kstat2_delete_zone(9F) man page.
|
|