Lines Matching refs:kc
49 static kstat_ctl_t *kc; /* libkstat cookie */ variable
128 if ((kc = kstat_open()) == NULL) { in sysstat_init()
205 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in init_disks()
260 if (kstat_read(kc, disk->ks, in diskinfo_load()
276 while (kstat_chain_update(kc) || diskinfo_load()) { in check_disks()
303 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in cpu_stats_init()
313 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in cpu_stats_init()
316 kstat_read(kc, ksp, NULL) != -1) in cpu_stats_init()
337 if (kstat_read(kc, cpu_stats_list[i], NULL) == -1) in cpu_stats_load()
366 while (kstat_chain_update(kc) || cpu_stats_load()) { in check_tty()
382 if ((load_ave_ksp = kstat_lookup(kc, "unix", 0, "system_misc")) == in load_ave_init()
391 if (kstat_read(kc, load_ave_ksp, NULL) == -1) { in load_ave_load()
403 while (kstat_chain_update(kc) || load_ave_load()) { in check_load_ave()
419 nfs_client2_kstat = kstat_lookup(kc, "nfs", 0, "rfsreqcnt_v2"); in nfs_init()
420 nfs_client3_kstat = kstat_lookup(kc, "nfs", 0, "rfsreqcnt_v3"); in nfs_init()
421 nfs_server2_kstat = kstat_lookup(kc, "nfs", 0, "rfsproccnt_v2"); in nfs_init()
422 nfs_server3_kstat = kstat_lookup(kc, "nfs", 0, "rfsproccnt_v3"); in nfs_init()
445 if (kstat_read(kc, nfs_client2_kstat, NULL) == -1) { in nfs_load()
458 if (kstat_read(kc, nfs_client3_kstat, NULL) == -1) { in nfs_load()
474 if (kstat_read(kc, nfs_server2_kstat, NULL) == -1) { in nfs_load()
487 if (kstat_read(kc, nfs_server3_kstat, NULL) == -1) { in nfs_load()
512 while (kstat_chain_update(kc) || nfs_load()) { in check_nfs()
546 conskbd_ksp = kstat_lookup(kc, "conskbd", 0, "activity"); in conskbd_init()
558 if (conskbd_ksp == NULL || kstat_read(kc, conskbd_ksp, NULL) == -1 || in conskbd_idle_time()
568 consms_ksp = kstat_lookup(kc, "consms", 0, "activity"); in consms_init()
580 if (consms_ksp == NULL || kstat_read(kc, consms_ksp, NULL) == -1 || in consms_idle_time()