Lines Matching refs:kc

68 static	kstat_ctl_t	*kc;		/* libkstat cookie */  variable
210 if ((kc = kstat_open()) == NULL) in main()
288 (void) kstat_chain_update(kc); in main()
329 sysinfo_ksp = safe_kstat_lookup(kc, "unix", 0, "sysinfo"); in all_stat_init()
330 vminfo_ksp = safe_kstat_lookup(kc, "unix", 0, "vminfo"); in all_stat_init()
331 kmem_oversize_ksp = safe_kstat_lookup(kc, "vmem", -1, "kmem_oversize"); in all_stat_init()
332 var_ksp = safe_kstat_lookup(kc, "unix", 0, "var"); in all_stat_init()
333 system_misc_ksp = safe_kstat_lookup(kc, "unix", 0, "system_misc"); in all_stat_init()
334 file_cache_ksp = safe_kstat_lookup(kc, "unix", 0, "file_cache"); in all_stat_init()
335 ufs_inode_ksp = kstat_lookup(kc, "ufs", 0, "inode_cache"); in all_stat_init()
337 safe_kstat_read(kc, system_misc_ksp, NULL); in all_stat_init()
340 safe_kstat_read(kc, file_cache_ksp, NULL); in all_stat_init()
344 safe_kstat_read(kc, kmem_oversize_ksp, NULL); in all_stat_init()
350 safe_kstat_read(kc, ufs_inode_ksp, NULL); in all_stat_init()
362 safe_kstat_read(kc, var_ksp, (void *) &var); in all_stat_init()
369 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in all_stat_init()
380 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in all_stat_init()
382 kstat_read(kc, ksp, NULL) != -1) in all_stat_init()
385 kstat_read(kc, ksp, NULL) != -1) in all_stat_init()
396 safe_kstat_read(kc, ksp, NULL); in all_stat_init()
423 safe_kstat_read(kc, sysinfo_ksp, (void *) &d.si); in all_stat_load()
424 safe_kstat_read(kc, vminfo_ksp, (void *) &d.vmi); in all_stat_load()
425 safe_kstat_read(kc, system_misc_ksp, NULL); in all_stat_load()
426 safe_kstat_read(kc, file_cache_ksp, NULL); in all_stat_load()
429 safe_kstat_read(kc, ufs_inode_ksp, NULL); in all_stat_load()
445 if (kstat_read(kc, cpu_stat_list[i], (void *) &cs) == -1) in all_stat_load()
476 if (kstat_read(kc, kmem_cache_list[i], NULL) == -1) in all_stat_load()
497 safe_kstat_read(kc, kmem_oversize_ksp, NULL); in all_stat_load()
540 safe_kstat_read(kstat_ctl_t *kc, kstat_t *ksp, void *data) in safe_kstat_read() argument
542 kid_t kstat_chain_id = kstat_read(kc, ksp, data); in safe_kstat_read()
545 fail(1, "kstat_read(%x, '%s') failed", kc, ksp->ks_name); in safe_kstat_read()
550 safe_kstat_lookup(kstat_ctl_t *kc, char *ks_module, int ks_instance, in safe_kstat_lookup() argument
553 kstat_t *ksp = kstat_lookup(kc, ks_module, ks_instance, ks_name); in safe_kstat_lookup()
610 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in init_iodevs()
663 if (kstat_read(kc, iodev->ksp, (void *) &iodev->kios) == -1) in iodevinfo_load()