Lines Matching refs:kc
76 kstat_ctl_t *kc; in cpu_cpuid_present() local
78 if ((kc = kstat_open()) == NULL) in cpu_cpuid_present()
80 ksp = kstat_lookup(kc, "cpu_info", cpuid, NULL); in cpu_cpuid_present()
81 (void) kstat_close(kc); in cpu_cpuid_present()
95 kstat_ctl_t *kc; in cpu_get_serialid_kstat() local
99 if ((kc = kstat_open()) == NULL) in cpu_get_serialid_kstat()
102 if ((ksp = kstat_lookup(kc, "cpu_info", cpuid, NULL)) == NULL) { in cpu_get_serialid_kstat()
103 (void) kstat_close(kc); in cpu_get_serialid_kstat()
107 if (kstat_read(kc, ksp, NULL) == -1) { in cpu_get_serialid_kstat()
109 (void) kstat_close(kc); in cpu_get_serialid_kstat()
116 (void) kstat_close(kc); in cpu_get_serialid_kstat()
121 (void) kstat_close(kc); in cpu_get_serialid_kstat()