| /onnv/onnv-gate/usr/src/cmd/powertop/common/ |
| battery.c | 69 kstat_ctl_t *kc = kstat_open(); local 71 if (kstat_lookup(kc, kstat_batt_mod[1], 0, NULL)) 74 if (kstat_lookup(kc, kstat_batt_mod[2], 0, NULL)) 79 (void) kstat_close(kc); 115 kstat_ctl_t *kc; local 119 kc = kstat_open(); 128 ksp = kstat_lookup(kc, kstat_batt_mod[kstat_batt_idx], 0, 132 (void) kstat_close(kc); 136 (void) kstat_read(kc, ksp, NULL); 140 (void) kstat_close(kc); [all...] |
| turbo.c | 65 kstat_ctl_t *kc; local 72 if ((kc = kstat_open()) == NULL) { 77 ksp = kstat_lookup(kc, "turbo", 0, NULL); 80 (void) kstat_close(kc); 84 (void) kstat_read(kc, ksp, NULL); 90 (void) kstat_close(kc); 103 (void) kstat_close(kc); 114 kstat_ctl_t *kc; local 120 if ((kc = kstat_open()) == NULL) 125 ksp = kstat_lookup(kc, "turbo", g_cpu_table[cpu], NULL) [all...] |
| cpufreq.c | 165 kstat_ctl_t *kc; local 186 if ((kc = kstat_open()) == NULL) 189 ksp = kstat_lookup(kc, "cpu_info", g_cpu_table[g_observed_cpu], NULL); 193 (void) kstat_close(kc); 197 (void) kstat_read(kc, ksp, NULL); 223 (void) kstat_close(kc); 374 kstat_ctl_t *kc; local 378 if ((kc = kstat_open()) == NULL) 383 ret = pt_cpufreq_snapshot_cpu(kc, g_observed_cpu); 388 if ((ret = pt_cpufreq_snapshot_cpu(kc, i)) != 0 [all...] |
| /onnv/onnv-gate/usr/src/cmd/avs/dsstat/ |
| multi_stats.c | 87 kstat_ctl_t *kc; local 89 if ((kc = kstat_open()) == NULL) 93 sdbc_err = sdbc_discover(kc); 102 sndr_err = sndr_discover(kc); 111 ii_err = ii_discover(kc); 119 (void) kstat_close(kc); 126 (void) kstat_close(kc); 139 kstat_ctl_t *kc; local 141 if ((kc = kstat_open()) == NULL) 145 sdbc_err = sdbc_update(kc); [all...] |
| ii_stats.c | 64 ii_discover(kstat_ctl_t *kc) 71 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { 84 if (kstat_read(kc, ksp, NULL) == -1) 123 iistat->pre_set = kstat_retrieve(kc, ksp); 135 mst_ksp = kstat_lookup(kc, II_KSTAT_MODULE, -1, kname); 136 iistat->pre_mst = kstat_retrieve(kc, mst_ksp); 148 shd_ksp = kstat_lookup(kc, II_KSTAT_MODULE, -1, kname); 149 iistat->pre_shd = kstat_retrieve(kc, shd_ksp); 161 bmp_ksp = kstat_lookup(kc, II_KSTAT_MODULE, -1, kname); 162 iistat->pre_bmp = kstat_retrieve(kc, bmp_ksp) [all...] |
| sndr_stats.c | 75 sndr_discover(kstat_ctl_t *kc) 87 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { 101 if (kstat_read(kc, ksp, NULL) == -1) 141 sndrstat->pre_set = kstat_retrieve(kc, ksp); 153 bmp_ksp = kstat_lookup(kc, RDC_KSTAT_BMPNAME, kinst, kname); 154 sndrstat->pre_bmp = kstat_retrieve(kc, bmp_ksp); 166 sec_ksp = kstat_lookup(kc, RDC_KSTAT_MODULE, kinst, kname); 167 sndrstat->pre_sec = kstat_retrieve(kc, sec_ksp); 231 sndr_update(kstat_ctl_t *kc) 269 ksp = kstat_lookup(kc, RDC_KSTAT_MODULE, kinst, kname) [all...] |
| /onnv/onnv-gate/usr/src/lib/libkstat/common/ |
| kstat.c | 54 kstat_chain_free(kstat_ctl_t *kc) 58 ksp = kc->kc_chain; 65 kc->kc_chain = NULL; 66 kc->kc_chain_id = 0; 72 kstat_ctl_t *kc; local 78 kstat_zalloc((void **)&kc, sizeof (kstat_ctl_t), 0); 79 if (kc == NULL) 82 kc->kc_kd = kd; 83 kc->kc_chain = NULL; 84 kc->kc_chain_id = 0 [all...] |
| /onnv/onnv-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
| piclkstat.c | 67 static int kstat_network_port_state(kstat_ctl_t *kc, char *, int); 68 static int kstat_network_port_cond(kstat_ctl_t *kc, char *, int); 70 static int serial_port_cond(kstat_ctl_t *kc, char *, int); 72 static int parallel_port_cond(kstat_ctl_t *kc, char *, int); 95 kstat_ctl_t *kc = NULL; local 101 if ((kc = kstat_open()) == NULL) { 104 rc = port_state[port_type](kc, driver_name, driver_instance); 105 kstat_close(kc); 120 kstat_ctl_t *kc = NULL; local 125 if ((kc = kstat_open()) == NULL) [all...] |
| /onnv/onnv-gate/usr/src/lib/libprtdiag/common/ |
| kstat.c | 67 kstat_ctl_t *kc; local 76 if ((kc = kstat_open()) == NULL) { 92 ksp = kstat_lookup(kc, UNIX, board, FHC_KSTAT_NAME); 95 if ((ksp != NULL) && (kstat_read(kc, ksp, NULL) == -1)) { 126 ksp = kstat_lookup(kc, UNIX, board, AC_KSTAT_NAME); 129 if ((ksp != NULL) && (kstat_read(kc, ksp, NULL) == -1)) { 187 ksp = kstat_lookup(kc, UNIX, board, SIMMSTAT_KSTAT_NAME); 190 if (kstat_read(kc, ksp, NULL) == -1) { 200 ksp = kstat_lookup(kc, UNIX, board, OVERTEMP_KSTAT_NAME); 203 if (kstat_read(kc, ksp, NULL) == -1) 393 kstat_ctl_t *kc; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/sendmail/libsm/ |
| memstat.c | 93 static kstat_ctl_t *kc; 111 kc = kstat_open(); 112 if (kc == NULL) 114 kst = kstat_lookup(kc, "unix", 0, 136 if (kc == NULL) 138 r = kstat_close(kc); 164 if (kc == NULL || kst == NULL) 166 if (kstat_read(kc, kst, NULL) == -1)
|
| /onnv/onnv-gate/usr/src/cmd/stat/common/ |
| acquire.c | 54 kstat_lookup_read(kstat_ctl_t *kc, char *module, 57 kstat_t *ksp = kstat_lookup(kc, module, instance, name); 60 if (kstat_read(kc, ksp, NULL) == -1) 72 acquire_cpus(struct snapshot *ss, kstat_ctl_t *kc) 91 if ((ksp = kstat_lookup_read(kc, "cpu_info", i, NULL)) == NULL) 101 if ((ksp = kstat_lookup_read(kc, "cpu", i, "vm")) == NULL) 107 if ((ksp = kstat_lookup_read(kc, "cpu", i, "sys")) == NULL) 186 acquire_intrs(struct snapshot *ss, kstat_ctl_t *kc) 196 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { 205 sys_misc = kstat_lookup_read(kc, "unix", 0, "system_misc") 405 kstat_ctl_t *kc; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4u/USII-io-diagnosis/ |
| iod_main.c | 111 kstat_ctl_t *kc; local 115 if ((kc = kstat_open()) == NULL) 118 for (ksp = kc->kc_chain; ksp != NULL; ksp = ksp->ks_next) { 122 if (kstat_read(kc, ksp, NULL) == -1) { 123 (void) kstat_close(kc); 135 (void) kstat_close(kc); 141 (void) kstat_close(kc);
|
| /onnv/onnv-gate/usr/src/cmd/fs.d/nfs/nfsstat/ |
| nfsstat.c | 70 static kstat_ctl_t *kc = NULL; /* libkstat cookie */ variable 322 kstat_close(kc); 334 safe_kstat_read(kc, rpc_clts_client_kstat, NULL); 339 safe_kstat_read(kc, rpc_cots_client_kstat, NULL); 344 safe_kstat_read(kc, rpc_rdma_client_kstat, NULL); 349 safe_kstat_read(kc, rpc_clts_server_kstat, NULL); 353 safe_kstat_read(kc, rpc_cots_server_kstat, NULL); 357 safe_kstat_read(kc, rpc_rdma_server_kstat, NULL); 369 safe_kstat_read(kc, nfs_client_kstat, NULL); 373 safe_kstat_read(kc, nfs4_client_kstat, NULL) [all...] |
| /onnv/onnv-gate/usr/src/cmd/hal/hald/solaris/ |
| devinfo_cpu.c | 54 kstat_ctl_t *kc; local 184 kc = kstat_open (); 185 if (kc == NULL) { 191 ksp = kstat_lookup (kc, "cpu_info", cpu_id, NULL); 195 if (kc) { 196 kstat_close (kc); 201 kstat_read (kc, ksp, NULL); 241 if (kc) { 242 kstat_close (kc);
|
| /onnv/onnv-gate/usr/src/cmd/sa/ |
| sadc.c | 72 static kstat_ctl_t *kc; /* libkstat cookie */ variable 135 if ((kc = kstat_open()) == NULL) 206 (void) kstat_chain_update(kc); 247 sysinfo_ksp = safe_kstat_lookup(kc, "unix", 0, "sysinfo"); 248 vminfo_ksp = safe_kstat_lookup(kc, "unix", 0, "vminfo"); 249 kmem_oversize_ksp = safe_kstat_lookup(kc, "vmem", -1, "kmem_oversize"); 250 var_ksp = safe_kstat_lookup(kc, "unix", 0, "var"); 251 system_misc_ksp = safe_kstat_lookup(kc, "unix", 0, "system_misc"); 252 file_cache_ksp = safe_kstat_lookup(kc, "unix", 0, "file_cache"); 253 ufs_inode_ksp = kstat_lookup(kc, "ufs", 0, "inode_cache") [all...] |
| /onnv/onnv-gate/usr/src/cmd/power/ |
| sysstat.c | 49 static kstat_ctl_t *kc; /* libkstat cookie */ variable 128 if ((kc = kstat_open()) == NULL) { 205 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { 260 if (kstat_read(kc, disk->ks, 276 while (kstat_chain_update(kc) || diskinfo_load()) { 303 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { 313 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { 316 kstat_read(kc, ksp, NULL) != -1) 337 if (kstat_read(kc, cpu_stats_list[i], NULL) == -1) 366 while (kstat_chain_update(kc) || cpu_stats_load()) [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/schemes/cpu/ |
| cpu.c | 76 kstat_ctl_t *kc; local 78 if ((kc = kstat_open()) == NULL) 80 ksp = kstat_lookup(kc, "cpu_info", cpuid, NULL); 81 (void) kstat_close(kc); 95 kstat_ctl_t *kc; local 99 if ((kc = kstat_open()) == NULL) 102 if ((ksp = kstat_lookup(kc, "cpu_info", cpuid, NULL)) == NULL) { 103 (void) kstat_close(kc); 107 if (kstat_read(kc, ksp, NULL) == -1) { 109 (void) kstat_close(kc); [all...] |
| /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/ |
| unix.c | 75 unixpr(kstat_ctl_t *kc) 79 if (kc == NULL) { /* sanity check. */ 85 if ((ksp = kstat_lookup(kc, "sockfs", 0, "sock_unix_list")) == 90 if (kstat_read(kc, ksp, NULL) == -1) {
|
| /onnv/onnv-gate/usr/src/cmd/smbsrv/smbstat/ |
| smbstat.c | 44 static kstat_ctl_t *kc; /* libkstat cookie */ variable 120 (void) smbstat_kstat_read(kc, smb_server, NULL); 127 (void) smbstat_kstat_read(kc, smb_cmds, NULL); 186 if ((kc = kstat_open()) == NULL) 189 smb_server = kstat_lookup(kc, SMBSRV_KSTAT_MODULE, 0, smbsrv_name); 190 smb_cmds = kstat_lookup(kc, SMBSRV_KSTAT_MODULE, 0, 201 (void) kstat_close(kc); 286 smbstat_kstat_read(kstat_ctl_t *kc, kstat_t *ksp, void *data) 288 kid_t kstat_chain_id = kstat_read(kc, ksp, data);
|
| /onnv/onnv-gate/usr/src/lib/sun_sas/common/ |
| Sun_sasGetPhyStatistics.c | 41 kstat_ctl_t *kc; local 186 kc = kstat_open(); 187 if (kc == NULL) { 194 ksp = kstat_lookup(kc, NULL, -1, kstat_name); 201 (void) kstat_close(kc); 205 if (kstat_read(kc, ksp, NULL) == -1) { 211 (void) kstat_close(kc); 255 (void) kstat_close(kc);
|
| /onnv/onnv-gate/usr/src/uts/common/inet/ip/ |
| keysock.c | 484 keysock_consumer_t *kc; local 496 kc = (keysock_consumer_t *)ptr; 497 keystack = kc->kc_keystack; 500 kc->kc_sa_type)); 503 * can inspect KC_FLUSHING w/o locking down kc->kc_lock. 505 if (kc->kc_flags & KC_FLUSHING) { 529 keystack->keystack_consumers[kc->kc_sa_type] = NULL; 531 mutex_destroy(&kc->kc_lock); 532 netstack_rele(kc->kc_keystack->keystack_netstack); 565 keysock_consumer_t *kc; local 1030 keysock_consumer_t *kc; local 1851 keysock_consumer_t *kc = (keysock_consumer_t *)q->q_ptr; local 2278 keysock_consumer_t *kc = (keysock_consumer_t *)q->q_ptr; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
| cmd_cpu_arch.c | 162 kstat_ctl_t *kc; local 166 if ((kc = kstat_open()) == NULL) 169 if ((ksp = kstat_lookup(kc, "cpu_info", cpuid, NULL)) == NULL || 170 kstat_read(kc, ksp, NULL) == -1) { 172 (void) kstat_close(kc); 181 (void) kstat_close(kc); 186 (void) kstat_close(kc);
|
| /onnv/onnv-gate/usr/src/cmd/fps/fptest/ |
| fps_ereport_mod.c | 238 kstat_ctl_t *kc; local 242 kc = kstat_open(); 243 if (kc == NULL) { 247 if ((ksp = kstat_lookup(kc, "cpu_info", (int)cpu_id, NULL)) == NULL) { 248 (void) kstat_close(kc); 252 if ((kstat_read(kc, ksp, NULL)) == -1) { 253 (void) kstat_close(kc); 258 (void) kstat_close(kc); 263 (void) kstat_close(kc);
|
| /onnv/onnv-gate/usr/src/uts/common/sys/lvm/ |
| md_sp.h | 140 #define SPPS_FREE(kc, ps) \ 145 kmem_cache_free((kc), (ps)); \
|
| md_stripe.h | 124 #define SPS_FREE(kc, ps) \ 129 kmem_cache_free((kc), (ps)); \
|