Lines Matching refs:ksp

83 kstat_field_hint(kstat_t *ksp, kstat_field_t *field)  in kstat_field_hint()  argument
85 kstat_named_t *nm = KSTAT_NAMED_PTR(ksp); in kstat_field_hint()
88 assert(ksp->ks_type == KSTAT_TYPE_NAMED); in kstat_field_hint()
90 for (i = 0; i < ksp->ks_ndata; i++) { in kstat_field_hint()
96 field->ksf_name, ksp->ks_name, ksp->ks_instance); in kstat_field_hint()
126 kstat_t *ksp; in kstat_instances_update() local
138 for (ksp = kcp->kc_chain; ksp != NULL; ksp = ksp->ks_next) { in kstat_instances_update()
141 if (!interested(ksp)) in kstat_instances_update()
152 if (ksi->ksi_instance != ksp->ks_instance) in kstat_instances_update()
155 if (strcmp(ksi->ksi_name, ksp->ks_name) != 0) in kstat_instances_update()
158 ksi->ksi_ksp = ksp; in kstat_instances_update()
170 (void) strlcpy(ksi->ksi_name, ksp->ks_name, KSTAT_STRLEN); in kstat_instances_update()
171 ksi->ksi_instance = ksp->ks_instance; in kstat_instances_update()
172 ksi->ksi_ksp = ksp; in kstat_instances_update()
230 kstat_t *ksp = ksi->ksi_ksp; in kstat_instances_read() local
232 if (ksp == NULL) in kstat_instances_read()
235 if (kstat_read(kcp, ksp, NULL) == -1) { in kstat_instances_read()
251 if (ksp->ks_type != KSTAT_TYPE_NAMED) { in kstat_instances_read()
269 kstat_named_t *nm = KSTAT_NAMED_PTR(ksp); in kstat_instances_read()
276 if (hint < 0 || hint >= ksp->ks_ndata || in kstat_instances_read()
278 hint = kstat_field_hint(ksp, field); in kstat_instances_read()
284 ksi->ksi_snaptime[ksi->ksi_gen] = ksp->ks_snaptime; in kstat_instances_read()
340 interested(kstat_t *ksp) in interested() argument
346 if (strcmp(ksp->ks_module, module) != 0) in interested()
349 if (strcmp(ksp->ks_class, class) != 0) in interested()
352 if (strstr(ksp->ks_name, name) != ksp->ks_name) in interested()