Home
last modified time | relevance | path

Searched refs:thr (Results 1 – 25 of 25) sorted by relevance

/titanic_50/usr/src/cmd/mdb/common/modules/genunix/
H A Dfindstack_subr.c144 mdb_findstack_kthread_t thr; in stacks_findstack() local
156 if (mdb_ctf_vread(&thr, "kthread_t", "mdb_findstack_kthread_t", in stacks_findstack()
162 fsip->fsi_sobj_ops = (uintptr_t)thr.t_sobj_ops; in stacks_findstack()
163 fsip->fsi_tstate = thr.t_state; in stacks_findstack()
164 fsip->fsi_panic = !!(thr.t_flag & T_PANIC); in stacks_findstack()
166 if ((thr.t_schedflag & TS_LOAD) == 0) { in stacks_findstack()
173 if (thr.t_stk < thr.t_stkbase) { in stacks_findstack()
182 kbase = (uintptr_t)thr.t_stkbase; in stacks_findstack()
183 ktop = (uintptr_t)thr.t_stk; in stacks_findstack()
232 sp = KTOU((uintptr_t)thr.t_sp + STACK_BIAS); in stacks_findstack()
[all …]
H A Dsobj.c173 kthread_t thr; in wchan_walk_step() local
204 if (mdb_vread(&thr, sizeof (thr), t) != sizeof (thr)) { in wchan_walk_step()
209 if (thr.t_wchan == NULL) { in wchan_walk_step()
217 ww->ww_thr = (uintptr_t)thr.t_link; in wchan_walk_step()
224 if (ww->ww_compare == (uintptr_t)thr.t_wchan) in wchan_walk_step()
225 return (wsp->walk_callback(t, &thr, wsp->walk_cbdata)); in wchan_walk_step()
238 if (ww->ww_seen[i] == thr.t_wchan) in wchan_walk_step()
250 ww->ww_seen[ww->ww_seen_ndx++] = thr.t_wchan; in wchan_walk_step()
252 ww->ww_seen[ww->ww_seen_size - 1] = thr.t_wchan; in wchan_walk_step()
256 return (wsp->walk_callback((uintptr_t)thr.t_wchan, in wchan_walk_step()
H A Dgenunix.c2858 cpuinfo_walk_ithread(uintptr_t addr, const kthread_t *thr, cpuinfo_data_t *cid) in cpuinfo_walk_ithread() argument
2864 if (!(thr->t_flag & T_INTR_THREAD) || thr->t_state == TS_FREE) in cpuinfo_walk_ithread()
2867 if (thr->t_bound_cpu == NULL) { in cpuinfo_walk_ithread()
2872 (void) mdb_vread(&c, sizeof (c), (uintptr_t)thr->t_bound_cpu); in cpuinfo_walk_ithread()
2876 thr->t_bound_cpu, id, NCPU); in cpuinfo_walk_ithread()
2880 if ((pil = thr->t_pil) >= NINTR) { in cpuinfo_walk_ithread()
3476 didmatch(uintptr_t addr, const kthread_t *thr, kt_did_t *didp) in didmatch() argument
3479 if (*didp == thr->t_did) { in didmatch()
/titanic_50/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dsbp2_driver.c247 scsa1394_thread_t *thr; in scsa1394_sbp2_threads_init() local
252 thr = &lp->l_worker_thread; in scsa1394_sbp2_threads_init()
254 thr->thr_func = scsa1394_sbp2_worker_thread; in scsa1394_sbp2_threads_init()
255 thr->thr_arg = thr; in scsa1394_sbp2_threads_init()
256 thr->thr_state = SCSA1394_THR_INIT; in scsa1394_sbp2_threads_init()
257 cv_init(&thr->thr_cv, NULL, CV_DRIVER, NULL); in scsa1394_sbp2_threads_init()
258 thr->thr_lun = lp; in scsa1394_sbp2_threads_init()
259 thr->thr_req = 0; in scsa1394_sbp2_threads_init()
262 if (scsa1394_thr_dispatch(thr) != DDI_SUCCESS) { in scsa1394_sbp2_threads_init()
277 scsa1394_thread_t *thr; in scsa1394_sbp2_threads_fini() local
[all …]
H A Dhba.c2567 scsa1394_thr_dispatch(scsa1394_thread_t *thr) in scsa1394_thr_dispatch() argument
2569 scsa1394_lun_t *lp = thr->thr_lun; in scsa1394_thr_dispatch()
2574 ASSERT(thr->thr_state == SCSA1394_THR_INIT); in scsa1394_thr_dispatch()
2576 thr->thr_state = SCSA1394_THR_RUN; in scsa1394_thr_dispatch()
2578 ret = ddi_taskq_dispatch(sp->s_taskq, thr->thr_func, thr->thr_arg, in scsa1394_thr_dispatch()
2587 scsa1394_thr_cancel(scsa1394_thread_t *thr) in scsa1394_thr_cancel() argument
2589 scsa1394_lun_t *lp = thr->thr_lun; in scsa1394_thr_cancel()
2593 thr->thr_req |= SCSA1394_THREQ_EXIT; in scsa1394_thr_cancel()
2594 cv_signal(&thr->thr_cv); in scsa1394_thr_cancel()
2598 if (cv_wait_sig(&thr->thr_cv, &lp->l_mutex) == 0) { in scsa1394_thr_cancel()
[all …]
/titanic_50/usr/src/lib/libc/port/threads/
H A Dc11_thr.c194 thrd_create(thrd_t *thr, thrd_start_t func, void *arg) in thrd_create() argument
198 ret = pthread_create(thr, NULL, (void *(*)(void *))func, arg); in thrd_create()
214 thrd_detach(thrd_t thr) in thrd_detach() argument
216 if (pthread_detach(thr) == 0) in thrd_detach()
/titanic_50/usr/src/uts/common/io/usb/clients/usbser/
H A Dusbser.c1864 usbser_thr_dispatch(usbser_thread_t *thr) in usbser_thr_dispatch() argument
1866 usbser_port_t *pp = thr->thr_port; in usbser_thr_dispatch()
1872 ASSERT((thr->thr_flags & USBSER_THR_RUNNING) == 0); in usbser_thr_dispatch()
1874 thr->thr_flags = USBSER_THR_RUNNING; in usbser_thr_dispatch()
1876 rval = ddi_taskq_dispatch(usp->us_taskq, thr->thr_func, thr->thr_arg, in usbser_thr_dispatch()
1886 usbser_thr_cancel(usbser_thread_t *thr) in usbser_thr_cancel() argument
1888 usbser_port_t *pp = thr->thr_port; in usbser_thr_cancel()
1892 thr->thr_flags &= ~USBSER_THR_RUNNING; in usbser_thr_cancel()
1893 cv_signal(&thr->thr_cv); in usbser_thr_cancel()
1897 cv_wait(&thr->thr_cv, &pp->port_mutex); in usbser_thr_cancel()
[all …]
/titanic_50/usr/src/cmd/isns/isnsd/
H A Ddoor.c1267 thr_elem_t *thr = thr_list; in match_entry() local
1269 while (thr) { in match_entry()
1270 if (pthread_equal(thr->thr_id, tid)) { in match_entry()
1271 return (thr); in match_entry()
1273 thr = thr->next; in match_entry()
1287 thr_elem_t *thr = thr_list; in add_entry() local
1299 while (thr->next) { in add_entry()
1300 thr = thr->next; in add_entry()
1302 thr->next = new_e; in add_entry()
1330 thr_elem_t *thr; in door_server() local
[all …]
/titanic_50/usr/src/cmd/fm/fmd/common/
H A Dfmd_mdb.c69 fmd_thread_t thr; in trwalk_init() local
83 addr = (uintptr_t)thr.thr_list.l_next) { in trwalk_init()
89 if (mdb_vread(&thr, sizeof (thr), addr) != sizeof (thr)) { in trwalk_init()
100 sizeof (t->trw_data), (uintptr_t)thr.thr_trdata); in trwalk_init()
108 t->trw_tid = thr.thr_tid; in trwalk_init()
698 fmd_thread_t thr; in fmd_thread() local
706 if (mdb_vread(&thr, sizeof (thr), addr) != sizeof (thr)) { in fmd_thread()
717 addr, thr.thr_mod, thr.thr_tid, thr.thr_func); in fmd_thread()
/titanic_50/usr/src/lib/libsip/common/
H A Dsip_timeout.c286 pthread_t thr; in sip_schedule_to_functions() local
288 (void) pthread_create(&thr, NULL, sip_run_to_functions, in sip_schedule_to_functions()
290 (void) pthread_detach(thr); in sip_schedule_to_functions()
/titanic_50/usr/src/cmd/mdb/sparc/kmdb/kctl/
H A Dkctl_asm.s39 kctl_curthread_set(kthread_t *thr)
/titanic_50/usr/src/cmd/mdb/i86pc/modules/unix/
H A Dunix.c600 kthread_t thr; in mutex_owner_step() local
611 if (mdb_vread(&thr, sizeof (thr), owner) != -1) in mutex_owner_step()
612 (void) wsp->walk_callback(owner, &thr, wsp->walk_cbdata); in mutex_owner_step()
/titanic_50/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_stats.c779 kthread_t *thr; in hermon_kstat_perfcntr64_thread_create() local
788 thr = thread_create(NULL, 0, in hermon_kstat_perfcntr64_thread_create()
791 ksi->hki_perfcntr64_thread_id = thr->t_did; in hermon_kstat_perfcntr64_thread_create()
/titanic_50/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_stats.c700 kthread_t *thr; in tavor_kstat_perfcntr64_thread_create() local
709 thr = thread_create(NULL, 0, in tavor_kstat_perfcntr64_thread_create()
712 ksi->tki_perfcntr64_thread_id = thr->t_did; in tavor_kstat_perfcntr64_thread_create()
/titanic_50/usr/src/cmd/mdb/sun4u/modules/unix/
H A Dunix.c1563 kthread_t thr; in mutex_owner_step() local
1574 if (mdb_vread(&thr, sizeof (thr), owner) != -1) in mutex_owner_step()
1575 (void) wsp->walk_callback(owner, &thr, wsp->walk_cbdata); in mutex_owner_step()
/titanic_50/usr/src/uts/sun4u/lw8/io/
H A Dsgenv.c1951 envresp_thresholds_t thr[SGENV_MAX_SENSORS_PER_KEY]; in sgenv_get_env_data() member
1972 resp.msg_len = sizeof (buf.thr); in sgenv_get_env_data()
1973 resp.msg_buf = (caddr_t)buf.thr; in sgenv_get_env_data()
2076 buf.thr[i].lo_warn; in sgenv_get_env_data()
2078 buf.thr[i].hi_warn; in sgenv_get_env_data()
/titanic_50/usr/src/lib/libsqlite/test/
H A Dmisc1.test97 INSERT INTO agger VALUES(3, 'thr', 'howareya', 'yes');
108 } {8 two no 6 one yes 4 two yes 3 thr yes}
112 } {8 two no 6 one yes 4 two yes 3 thr yes}
/titanic_50/usr/src/lib/libtnfprobe/
H A Dprobe_cntl.c73 typedef int (*tnf_pthread_create_func_t)(pthread_t *thr,
/titanic_50/usr/src/lib/libc/amd64/
H A DMakefile842 thr.o \
1150 thr.o \
/titanic_50/usr/src/lib/libzpool/common/sys/
H A Dzfs_context.h203 #define ISSIG(thr, why) (FALSE) argument
/titanic_50/usr/src/lib/smbsrv/libmlsvc/common/
H A Ddfs.c220 pthread_t thr; in dfs_namespace_load() local
233 rc = pthread_create(&thr, &tattr, dfs_namespace_cache, rootshr); in dfs_namespace_load()
/titanic_50/usr/src/lib/libc/sparcv9/
H A DMakefile.com860 thr.o \
1172 thr.o \
/titanic_50/usr/src/lib/libc/i386/
H A DMakefile.com886 thr.o \
1214 thr.o \
/titanic_50/usr/src/lib/libc/sparc/
H A DMakefile.com914 thr.o \
1245 thr.o \
/titanic_50/usr/src/uts/common/os/
H A Dsunpm.c5854 int thr = (int)(*(int *)arg); in pm_set_dev_thr_walk() local
5858 pm_set_device_threshold(dip, thr, PMC_DEF_THRESH); in pm_set_dev_thr_walk()