Lines Matching refs:kc

48 static	kstat_ctl_t	*kc;			/* libkstat cookie */  variable
127 if ((kc = kstat_open()) == NULL) { in sysstat_init()
204 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in init_disks()
259 if (kstat_read(kc, disk->ks, in diskinfo_load()
275 while (kstat_chain_update(kc) || diskinfo_load()) { in check_disks()
302 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in cpu_stats_init()
312 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in cpu_stats_init()
315 kstat_read(kc, ksp, NULL) != -1) in cpu_stats_init()
336 if (kstat_read(kc, cpu_stats_list[i], NULL) == -1) in cpu_stats_load()
365 while (kstat_chain_update(kc) || cpu_stats_load()) { in check_tty()
381 if ((load_ave_ksp = kstat_lookup(kc, "unix", 0, "system_misc")) == in load_ave_init()
390 if (kstat_read(kc, load_ave_ksp, NULL) == -1) { in load_ave_load()
402 while (kstat_chain_update(kc) || load_ave_load()) { in check_load_ave()
418 nfs_client2_kstat = kstat_lookup(kc, "nfs", 0, "rfsreqcnt_v2"); in nfs_init()
419 nfs_client3_kstat = kstat_lookup(kc, "nfs", 0, "rfsreqcnt_v3"); in nfs_init()
420 nfs_server2_kstat = kstat_lookup(kc, "nfs", 0, "rfsproccnt_v2"); in nfs_init()
421 nfs_server3_kstat = kstat_lookup(kc, "nfs", 0, "rfsproccnt_v3"); in nfs_init()
444 if (kstat_read(kc, nfs_client2_kstat, NULL) == -1) { in nfs_load()
457 if (kstat_read(kc, nfs_client3_kstat, NULL) == -1) { in nfs_load()
473 if (kstat_read(kc, nfs_server2_kstat, NULL) == -1) { in nfs_load()
486 if (kstat_read(kc, nfs_server3_kstat, NULL) == -1) { in nfs_load()
511 while (kstat_chain_update(kc) || nfs_load()) { in check_nfs()
545 conskbd_ksp = kstat_lookup(kc, "conskbd", 0, "activity"); in conskbd_init()
557 if (conskbd_ksp == NULL || kstat_read(kc, conskbd_ksp, NULL) == -1 || in conskbd_idle_time()
567 consms_ksp = kstat_lookup(kc, "consms", 0, "activity"); in consms_init()
579 if (consms_ksp == NULL || kstat_read(kc, consms_ksp, NULL) == -1 || in consms_idle_time()