Lines Matching refs:kc
646 kstat_ctl_t *kc; in uv_uptime() local
652 kc = kstat_open(); in uv_uptime()
653 if (kc == NULL) in uv_uptime()
656 ksp = kstat_lookup(kc, (char*) "unix", 0, (char*) "system_misc"); in uv_uptime()
657 if (kstat_read(kc, ksp, NULL) == -1) { in uv_uptime()
663 kstat_close(kc); in uv_uptime()
671 kstat_ctl_t *kc; in uv_cpu_info() local
676 kc = kstat_open(); in uv_cpu_info()
677 if (kc == NULL) in uv_cpu_info()
682 while ((ksp = kstat_lookup(kc, (char*) "cpu_info", lookup_instance, NULL))) { in uv_cpu_info()
688 kstat_close(kc); in uv_cpu_info()
696 while ((ksp = kstat_lookup(kc, (char*) "cpu_info", lookup_instance, NULL))) { in uv_cpu_info()
697 if (kstat_read(kc, ksp, NULL) == -1) { in uv_cpu_info()
719 ksp = kstat_lookup(kc, (char*) "cpu", lookup_instance, (char*) "sys"); in uv_cpu_info()
724 if (kstat_read(kc, ksp, NULL) == -1) { in uv_cpu_info()
753 kstat_close(kc); in uv_cpu_info()