Home
last modified time | relevance | path

Searched refs:kctl (Results 1 – 19 of 19) sorted by relevance

/titanic_41/usr/src/cmd/mdb/common/kmdb/kctl/
H A Dkctl_main.c45 kctl_t kctl; variable
80 sema_init(&kctl.kctl_wr_avail_sem, 0, NULL, SEMA_DRIVER, NULL); in kctl_init()
81 mutex_init(&kctl.kctl_wr_lock, NULL, MUTEX_DRIVER, NULL); in kctl_init()
82 cv_init(&kctl.kctl_wr_cv, NULL, CV_DRIVER, NULL); in kctl_init()
83 mutex_init(&kctl.kctl_lock, NULL, MUTEX_DRIVER, NULL); in kctl_init()
85 kctl.kctl_execname = KCTL_EXECNAME; /* XXX get from modctl? */ in kctl_init()
87 kctl.kctl_state = KCTL_ST_INACTIVE; in kctl_init()
89 kctl.kctl_dseg = kctl.kctl_mrbase = NULL; in kctl_init()
90 kctl.kctl_dseg_size = kctl.kctl_mrsize = 0; in kctl_init()
102 mutex_destroy(&kctl.kctl_lock); in kctl_fini()
[all …]
H A Dkctl_wr.c117 ASSERT(kctl.kctl_boot_ops == NULL); in kctl_wr_process_cb()
185 kctl.kctl_wr_avail = 0; in kctl_wrintr()
187 sema_v(&kctl.kctl_wr_avail_sem); in kctl_wrintr()
196 kctl.kctl_wr_avail = 1; in kctl_wrintr_fire()
225 sema_p(&kctl.kctl_wr_avail_sem); in kctl_wr_thread()
234 kctl.kctl_wr_state != KCTL_WR_ST_RUN) { in kctl_wr_thread()
275 kctl.kctl_wr_state = KCTL_WR_ST_STOPPED; in kctl_wr_thread()
292 kctl.kctl_wr_avail = 0; in kctl_wr_thr_start()
293 kctl.kctl_wr_state = KCTL_WR_ST_RUN; in kctl_wr_thr_start()
294 kctl.kctl_wr_thr = thread_create(NULL, 0, kctl_wr_thread, NULL, 0, &p0, in kctl_wr_thr_start()
[all …]
H A Dkctl_err.c49 if (kctl.kctl_boot_ops == NULL) { in kctl_vprintf()
56 BOP_PUTSARG(kctl.kctl_boot_ops, "WARNING: ", NULL); in kctl_vprintf()
58 BOP_PUTSARG(kctl.kctl_boot_ops, "NOTE: ", NULL); in kctl_vprintf()
61 BOP_PUTSARG(kctl.kctl_boot_ops, "%s\n", buf); in kctl_vprintf()
80 if (!(kctl.kctl_flags & KMDB_F_DRV_DEBUG)) in kctl_dprintf()
H A Dkctl_auxv.c76 kav->kav_dseg = kctl.kctl_dseg; in kctl_auxv_init()
77 kav->kav_dseg_size = kctl.kctl_dseg_size; in kctl_auxv_init()
89 if (kctl.kctl_boot_loaded) { in kctl_auxv_init()
95 if (kctl.kctl_flags & KMDB_F_TRAP_NOSWITCH) in kctl_auxv_init()
H A Dkctl.h62 typedef struct kctl { struct
87 extern kctl_t kctl;
H A Dkctl_dmod.c173 if (kctl.kctl_boot_ops == NULL) in kctl_dmod_load()
181 if (kctl.kctl_boot_ops == NULL) in kctl_dmod_load()
235 if (kctl.kctl_boot_ops != NULL) in kctl_dmod_autoload()
384 if (kctl.kctl_flags & KMDB_F_DRV_DEBUG) { in kctl_dmod_path_set()
/titanic_41/usr/src/cmd/pools/poold/com/sun/solaris/service/kstat/
H A DKstatCtl.java45 private long kctl; field in KstatCtl
53 kctl = open(); in KstatCtl()
54 assert(kctl != 0); in KstatCtl()
62 close(kctl); in finalize()
63 kctl = 0; in finalize()
74 private native int close(long kctl); in close() argument
H A DKstat.java41 private long kctl; field in Kstat
48 Kstat(long kctl, long ksp) in Kstat() argument
50 this.kctl = kctl; in Kstat()
H A DKstatChainUpdateException.java41 public KstatChainUpdateException(KstatCtl kctl) in KstatChainUpdateException() argument
/titanic_41/usr/src/cmd/mdb/sparc/kmdb/kctl/
H A Dkctl_isadep.c56 if (kctl.kctl_boot_loaded) { in kctl_patch_text()
143 xc_all((xcfunc_t *)kctl_ttable_tlb_lock, (uint64_t)kctl.kctl_tba, in kctl_ttable_init()
150 xc_all((xcfunc_t *)kctl_ttable_tlb_unlock, (uint64_t)kctl.kctl_dseg, in kctl_ttable_fini()
172 kctl_ttable_tlb_lock(kctl.kctl_tba, KCTL_TTABLE_SIZE); in kctl_cpu_init()
178 if (!kctl.kctl_boot_loaded) { in kctl_preactivate_isadep()
213 kctl.kctl_tba = kav->kav_tba_native = kctl_ttable_reserve(kav, in kctl_auxv_init_isadep()
220 kav->kav_tba_active = (kctl.kctl_boot_loaded ? kav->kav_tba_obp : in kctl_auxv_init_isadep()
225 kav->kav_romp = (kctl.kctl_boot_loaded ? romp : (void *)cif_handler); in kctl_auxv_init_isadep()
230 if (kctl.kctl_boot_loaded) { in kctl_auxv_init_isadep()
/titanic_41/usr/src/cmd/mdb/sun4u/v9/kmdb/
H A DMakefile102 %.o: ../../../common/kmdb/kctl/%.c
106 %.o: ../../../common/kmdb/kctl/%.s
120 %.o: ../../../sparc/kmdb/kctl/%.c
124 %.o: ../../../sparc/kmdb/kctl/%.s
138 %.o: ../../../sparc/v9/kmdb/kctl/%.s
152 %.ln: ../../../common/kmdb/kctl/%.c
155 %.ln: ../../../common/kmdb/kctl/%.s
167 %.ln: ../../../sparc/kmdb/kctl/%.c
170 %.ln: ../../../sparc/kmdb/kctl/%.s
182 %.ln: ../../../sparc/v9/kmdb/kctl/%.s
/titanic_41/usr/src/cmd/mdb/sun4v/v9/kmdb/
H A DMakefile110 %.o: ../../../common/kmdb/kctl/%.c
114 %.o: ../../../common/kmdb/kctl/%.s
128 %.o: ../../../sparc/kmdb/kctl/%.c
132 %.o: ../../../sparc/kmdb/kctl/%.s
146 %.o: ../../../sparc/v9/kmdb/kctl/%.s
163 %.ln: ../../../common/kmdb/kctl/%.c
166 %.ln: ../../../common/kmdb/kctl/%.s
178 %.ln: ../../../sparc/kmdb/kctl/%.c
181 %.ln: ../../../sparc/kmdb/kctl/%.s
193 %.ln: ../../../sparc/v9/kmdb/kctl/%.s
/titanic_41/usr/src/cmd/pools/poold/libjkstat/
H A Djkstat.c146 jlong kctl) in Java_com_sun_solaris_service_kstat_KstatCtl_close() argument
148 if (kctl) in Java_com_sun_solaris_service_kstat_KstatCtl_close()
149 return (kstat_close((kstat_ctl_t *)(uintptr_t)kctl)); in Java_com_sun_solaris_service_kstat_KstatCtl_close()
160 kstat_ctl_t *kctl = in Java_com_sun_solaris_service_kstat_Kstat_read() local
167 if (!ksp || !kctl) in Java_com_sun_solaris_service_kstat_Kstat_read()
170 kid = kstat_read((kstat_ctl_t *)kctl, (kstat_t *)ksp, NULL); in Java_com_sun_solaris_service_kstat_Kstat_read()
192 kstat_ctl_t *kctl; in Java_com_sun_solaris_service_kstat_KstatCtl_lookup() local
204 kctl = (kstat_ctl_t *)(uintptr_t)(*env)->GetLongField(env, obj, in Java_com_sun_solaris_service_kstat_KstatCtl_lookup()
206 ksp = kstat_lookup(kctl, (char *)module, instance, (char *)name); in Java_com_sun_solaris_service_kstat_KstatCtl_lookup()
209 (jlong)(uintptr_t)kctl, (jlong)(uintptr_t)ksp); in Java_com_sun_solaris_service_kstat_KstatCtl_lookup()
[all …]
/titanic_41/usr/src/cmd/mdb/
H A DMakefile.kmdb.targ97 %.o: ../../../common/kmdb/kctl/%.c
101 %.o: ../../../common/kmdb/kctl/%.s
115 %.o: ../../kmdb/kctl/%.c
119 %.o: ../../kmdb/kctl/%.s
133 %.o: kctl/%.s
151 %.ln: ../../../common/kmdb/kctl/%.c
154 %.ln: ../../../common/kmdb/kctl/%.s
166 %.ln: ../../kmdb/kctl/%.c
169 %.ln: ../../kmdb/kctl/%.s
181 %.ln: kctl/%.s
/titanic_41/usr/src/cmd/avs/sdbc/
H A Dsdbc_dynmem.c166 kstat_ctl_t *kctl; in sd_dynmem_lintmain() local
328 kctl = kstat_open(); in sd_dynmem_lintmain()
329 if (kctl == NULL) { in sd_dynmem_lintmain()
338 info_ksp.ksp = kstat_lookup(kctl, SDBC_KSTAT_MODULE, 0, in sd_dynmem_lintmain()
348 if (kstat_read(kctl, info_ksp.ksp, NULL) == -1) { in sd_dynmem_lintmain()
381 if (kstat_write(kctl, info_ksp.ksp, NULL) == -1) { in sd_dynmem_lintmain()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_stats.c480 i_get_num_kinstances(kstat_ctl_t *kctl) in i_get_num_kinstances() argument
485 for (kp = kctl->kc_chain; kp != NULL; kp = kp->ks_next) { in i_get_num_kinstances()
550 i_get_server_descs(ilbst_arg_t *sta, kstat_ctl_t *kctl) in i_get_server_descs() argument
563 for (kp = kctl->kc_chain; kp != NULL; kp = kp->ks_next) { in i_get_server_descs()
573 (void) kstat_read(kctl, kp, NULL); in i_get_server_descs()
692 i_get_rule_descs(ilbst_arg_t *sta, kstat_ctl_t *kctl) in i_get_rule_descs() argument
706 for (i = 0, kp = kctl->kc_chain; i < rcount && kp != NULL; in i_get_rule_descs()
712 (void) kstat_read(kctl, kp, NULL); in i_get_rule_descs()
819 kstat_ctl_t *kctl; in i_do_show_stats() local
826 if ((kctl = kstat_open()) == NULL) { in i_do_show_stats()
[all …]
/titanic_41/usr/src/cmd/mdb/intel/kmdb/kctl/
H A Dkctl_isadep.c44 struct bootops *ops = kctl.kctl_boot_ops; in kctl_boot_prop_read()
98 if (kctl.kctl_boot_loaded) { in kctl_pcache_create()
179 if (!kctl.kctl_boot_loaded) in kctl_activate_isadep()
/titanic_41/usr/src/cmd/rcap/rcapd/
H A Drcapd_main.c101 static kstat_ctl_t *kctl; /* kstat chain */ variable
1098 if (kstat_chain_update(kctl) == -1) { in get_globally_scanned_pages()
1103 for (ksp = kctl->kc_chain; ksp != NULL; ksp = ksp->ks_next) { in get_globally_scanned_pages()
1105 if (kstat_read(kctl, ksp, NULL) != -1) { in get_globally_scanned_pages()
1529 kctl = kstat_open(); in main()
1530 if (kctl == NULL) in main()
/titanic_41/usr/src/cmd/rpcsvc/
H A Drstat_proc.c669 safe_kstat_read(kstat_ctl_t *kctl, kstat_t *ksp, void *data) in safe_kstat_read() argument
671 kid_t kstat_chain_id = kstat_read(kctl, ksp, data); in safe_kstat_read()
674 fail(1, "kstat_read(%x, '%s') failed", kctl, ksp->ks_name); in safe_kstat_read()
679 safe_kstat_lookup(kstat_ctl_t *kctl, char *ks_module, int ks_instance, in safe_kstat_lookup() argument
682 kstat_t *ksp = kstat_lookup(kctl, ks_module, ks_instance, ks_name); in safe_kstat_lookup()