Lines Matching refs:ksp
55 kstat_t *ksp = kstat_lookup(kc, module, instance, name); in kstat_lookup_read() local
56 if (ksp == NULL) in kstat_lookup_read()
58 if (kstat_read(kc, ksp, NULL) == -1) in kstat_lookup_read()
60 return (ksp); in kstat_lookup_read()
80 kstat_t *ksp; in acquire_cpus() local
89 if ((ksp = kstat_lookup_read(kc, "cpu_info", i, NULL)) == NULL) in acquire_cpus()
99 if ((ksp = kstat_lookup_read(kc, "cpu", i, "vm")) == NULL) in acquire_cpus()
102 if (kstat_copy(ksp, &ss->s_cpus[i].cs_vm)) in acquire_cpus()
105 if ((ksp = kstat_lookup_read(kc, "cpu", i, "sys")) == NULL) in acquire_cpus()
108 if (kstat_copy(ksp, &ss->s_cpus[i].cs_sys)) in acquire_cpus()
186 kstat_t *ksp; in acquire_intrs() local
194 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in acquire_intrs()
195 if (ksp->ks_type == KSTAT_TYPE_INTR) in acquire_intrs()
216 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in acquire_intrs()
220 if (ksp->ks_type != KSTAT_TYPE_INTR) in acquire_intrs()
222 if (kstat_read(kc, ksp, NULL) == -1) in acquire_intrs()
225 ki = KSTAT_INTR_PTR(ksp); in acquire_intrs()
227 (void) strlcpy(ss->s_intrs[i].is_name, ksp->ks_name, in acquire_intrs()
247 kstat_t *ksp; in acquire_sys() local
249 if ((ksp = kstat_lookup(kc, "unix", 0, "sysinfo")) == NULL) in acquire_sys()
252 if (kstat_read(kc, ksp, &ss->s_sys.ss_sysinfo) == -1) in acquire_sys()
255 if ((ksp = kstat_lookup(kc, "unix", 0, "vminfo")) == NULL) in acquire_sys()
258 if (kstat_read(kc, ksp, &ss->s_sys.ss_vminfo) == -1) in acquire_sys()
261 if ((ksp = kstat_lookup(kc, "unix", 0, "dnlcstats")) == NULL) in acquire_sys()
264 if (kstat_read(kc, ksp, &ss->s_sys.ss_nc) == -1) in acquire_sys()
267 if ((ksp = kstat_lookup(kc, "unix", 0, "system_misc")) == NULL) in acquire_sys()
270 if (kstat_read(kc, ksp, NULL) == -1) in acquire_sys()
273 knp = (kstat_named_t *)kstat_data_lookup(ksp, "clk_intr"); in acquire_sys()
279 knp = (kstat_named_t *)kstat_data_lookup(ksp, "deficit"); in acquire_sys()