/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | trie.c | 318 rw_exit(&tid->rw_lock); in t_insert() 383 rw_exit(&tid->rw_lock); in t_insert6() 493 tid) == B_TRUE) { in t_traverse_delete() 498 tid) == B_TRUE) { in t_traverse_delete() 613 c_node = tid->trie; in t_remove() 615 &tid); in t_remove() 616 rw_exit(&tid->rw_lock); in t_remove() 681 rw_exit(&tid->rw_lock); in t_remove6() 767 rw_exit(&tid->rw_lock); in t_retrieve() 787 c_node = tid->trie; in t_retrieve6() [all …]
|
/illumos-gate/usr/src/uts/common/io/arn/ |
H A D | arn_xmit.c | 179 tid->paused++; in arn_tx_pause_tid() 193 tid->paused--; in arn_tx_resume_tid() 224 tid->paused--; in arn_tx_flush_tid() 253 while (tid->baw_head != tid->baw_tail && !tid->tx_buf[tid->baw_head]) { in arn_tx_update_baw() 275 if (index >= ((tid->baw_tail - tid->baw_head) & in arn_tx_addto_baw() 315 tid->seq_next = tid->seq_start; in arn_tid_drain() 316 tid->baw_tail = tid->baw_head; in arn_tid_drain() 494 if (tid->baw_head == tid->baw_tail) { in arn_tx_complete_aggr() 2348 tid->seq_start = tid->seq_next = 0; in arn_tx_node_init() 2350 tid->baw_head = tid->baw_tail = 0; in arn_tx_node_init() [all …]
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | Trace.cc | 113 tid, in message() 114 indent[tid].c_str(), in message() 139 tid = pthread_self(); in Trace() 140 if (stacks.size() < tid+1) { in Trace() 141 stacks.resize(tid+1); in Trace() 142 indent.resize(tid+1); in Trace() 143 indent[tid] = ""; in Trace() 146 stacks[tid].push_back(this); in Trace() 147 indent[tid] += " "; in Trace() 156 indent[tid].resize(len - 1); in ~Trace() [all …]
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | pthread.c | 50 _thr_setinherit(pthread_t tid, int inherit) in _thr_setinherit() argument 55 if ((ulwp = find_lwp(tid)) == NULL) { in _thr_setinherit() 72 if ((ulwp = find_lwp(tid)) == NULL) { in _thr_setparam() 114 pthread_t tid; in pthread_create() local 159 ulwp_t *ulwp = find_lwp(tid); in pthread_create() 163 (void) __lwp_detach(tid); in pthread_create() 169 *thread = tid; in pthread_create() 171 (void) thr_continue(tid); in pthread_create() 236 if ((ulwp = find_lwp(tid)) == NULL) { in pthread_getschedparam() 280 pthread_setschedparam(pthread_t tid, in pthread_setschedparam() argument [all …]
|
H A D | thr.c | 76 #define TIDHASH(tid, udp) (tid & (udp)->hash_mask) argument 507 if (tid == 0) in find_lwpp() 539 find_lwp(thread_t tid) in find_lwp() argument 569 thread_t tid; in _thrp_create() local 688 *new_thread = tid; in _thrp_create() 691 ulwp->ul_lwpid = tid; in _thrp_create() 1097 return ((tid == 0)? ESRCH : _thrp_join(tid, NULL, status, 1)); in pthread_join() 2510 if (tid == 0 || self->ul_lwpid == tid) { in thr_getstate() 2534 *lwp = tid; in thr_getstate() 2701 if (tid == 0) { in thr_setmutator() [all …]
|
/illumos-gate/usr/src/uts/sun4u/excalibur/io/ |
H A D | xcalwd.c | 59 timeout_id_t tid; member 266 tsp->tid = 0; in xcalwd_attach() 320 tsp->tid = 0; in xcalwd_timeout() 369 tsp->tid = 0; in xcalwd_close() 378 tid = tsp->tid; in xcalwd_close() 379 tsp->tid = 0; in xcalwd_close() 381 if (tid != 0) in xcalwd_close() 424 tid = 0; in xcalwd_ioctl() 430 tid = tsp->tid; in xcalwd_ioctl() 464 tid = 0; in xcalwd_ioctl() [all …]
|
/illumos-gate/usr/src/tools/ctf/stabs/common/ |
H A D | forth.c | 127 fth_null_header(ctf_id_t tid) in fth_null_header() argument 158 return (tid); in find_member_cb() 165 find_member(ctf_id_t tid, char *memname) in find_member() argument 179 ctf_id_t ltid = 0, tid; in fth_section_init() local 196 if ((tid = find_type(part)) == CTF_ERR || in fth_section_init() 197 (tid = ctf_type_resolve(ctf, tid)) == CTF_ERR || in fth_section_init() 198 (kind = ctf_type_kind(ctf, tid)) == CTF_ERR) { in fth_section_init() 211 if ((tid = find_member(ltid, part)) <= 0) { in fth_section_init() 217 if ((kind = ctf_type_kind(ctf, tid)) == CTF_ERR) { in fth_section_init() 232 ltid = tid; in fth_section_init() [all …]
|
H A D | fth_struct.c | 177 fth_struct_header(ctf_id_t tid) in fth_struct_header() argument 181 fth_str_curtid = tid; in fth_struct_header() 332 if (ctf_array_info(ctf, tid, &ar) == CTF_ERR) { in fth_print_array() 357 ctf_id_t tid; in fth_print_member() local 361 if ((tid = ctf_type_resolve(ctf, mem->fsm_tid)) == CTF_ERR) { in fth_print_member() 366 if ((kind = ctf_type_kind(ctf, tid)) == CTF_ERR) { in fth_print_member() 371 if ((sz = ctf_type_size(ctf, tid)) == CTF_ERR) { in fth_print_member() 378 if (ctf_type_encoding(ctf, tid, &e) == CTF_ERR) in fth_print_member() 379 return (parse_warn("Can't get encoding for %ld", tid)); in fth_print_member() 407 return (parse_warn("Type %ld in %s.%s is undefined", tid, in fth_print_member() [all …]
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | callout.c | 40 timer_t tid; in timeout() local 50 err = timer_create(CLOCK_REALTIME, &sev, &tid); in timeout() 56 err = timer_settime(tid, 0, &its, NULL); in timeout() 58 (void) timer_delete(tid); in timeout() 63 return (timeout_base + tid); in timeout() 72 timer_t tid; in untimeout() local 79 tid = (int)(id_cp - timeout_base); in untimeout() 83 rc = timer_settime(tid, 0, &its, &oits); in untimeout() 92 rc = timer_delete(tid); in untimeout()
|
H A D | thread.c | 32 thread_t tid; in _curthread() local 34 tid = thr_self(); in _curthread() 35 return ((kthread_t *)(uintptr_t)tid); in _curthread() 108 thread_t tid = (thread_t)(uintptr_t)kt; in tsignal() local 110 (void) thr_kill(tid, sig); in tsignal()
|
/illumos-gate/usr/src/cmd/latencytop/common/ |
H A D | latencytop.d | 198 @lt_call_count[pid, tid, stack(), this->cause, 200 @lt_call_sum[pid, tid, stack(), this->cause, 202 @lt_call_max[pid, tid, stack(), this->cause, 218 @lt_named_sum[pid, tid, "Wait for available CPU"] = 220 @lt_named_max[pid, tid, "Wait for available CPU"] = 360 @lt_call_count[pid, tid, stack(), this->cause, 362 @lt_call_sum[pid, tid, stack(), this->cause, 364 @lt_call_max[pid, tid, stack(), this->cause, 383 @lt_call_count[pid, tid, stack(), this->cause, 385 @lt_call_sum[pid, tid, stack(), this->cause, [all …]
|
/illumos-gate/usr/src/lib/abi/apptrace/common/ |
H A D | interceptlib.c | 61 thread_t tid; in abilock() local 64 tid = (*abi_thr_self)(); in abilock() 66 if (tid == locktid) { in abilock() 71 locktid = tid; in abilock() 80 thread_t tid; in abiunlock() local 85 tid = (*abi_thr_self)(); in abiunlock() 86 assert(tid == locktid); in abiunlock()
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_rexecd.c | 141 au_tid_addr_t tid; local 186 tid.at_addr[0] = addr[0]; 187 tid.at_addr[1] = addr[1]; 188 tid.at_addr[2] = addr[2]; 189 tid.at_addr[3] = addr[3]; 190 tid.at_type = type; 252 au_tid_addr_t tid; local 297 tid.at_addr[0] = addr[0]; 298 tid.at_addr[1] = addr[1]; 299 tid.at_addr[2] = addr[2]; [all …]
|
H A D | au_to.c | 482 if (tid->at_type == AU_IPv6) { in au_to_process_ex() 492 if (tid->at_type == AU_IPv6) { in au_to_process_ex() 516 if (tid->at_type == AU_IPv6) { in au_to_process_ex() 520 adr_char(&adr, (char *)tid->at_addr, 4); in au_to_process_ex() 635 if (tid->at_type == AU_IPv6) { in au_to_subject_ex() 647 if (tid->at_type == AU_IPv6) { in au_to_subject_ex() 672 if (tid->at_type == AU_IPv6) { in au_to_subject_ex() 676 adr_char(&adr, (char *)tid->at_addr, 4); in au_to_subject_ex() 1021 au_to_tid(au_generic_tid_t *tid) in au_to_tid() argument 1028 switch (tid->gt_type) { in au_to_tid() [all …]
|
/illumos-gate/usr/src/test/bhyve-tests/tests/inst_emul/ |
H A D | suspend_info.c | 95 pthread_t tid; in vcpu0_spawn() local 96 if (pthread_create(&tid, NULL, vcpu0_thread, (void *)vtc) != 0) { in vcpu0_spawn() 100 return (tid); in vcpu0_spawn() 104 vcpu0_join(pthread_t tid) in vcpu0_join() argument 107 if (pthread_join(tid, &status) != 0) { in vcpu0_join() 124 pthread_t tid; in test_plain_suspend() local 128 tid = vcpu0_spawn(&vcpu0); in test_plain_suspend() 133 vcpu0_join(tid); in test_plain_suspend() 160 pthread_t tid; in test_emitted_triplefault() local 182 tid = vcpu0_spawn(&vcpu0); in test_emitted_triplefault() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_proc.h | 92 #define PTL_GETREGS(t, tid, gregs) \ argument 94 ((pt_data_t *)((t)->t_data))->p_ptl_hdl, (tid), (gregs))) 96 #define PTL_SETREGS(t, tid, gregs) \ argument 98 ((pt_data_t *)((t)->t_data))->p_ptl_hdl, (tid), (gregs))) 100 #define PTL_GETXREGS(t, tid, xregs, size) \ argument 102 ((pt_data_t *)((t)->t_data))->p_ptl_hdl, (tid), (xregs), (size))) 108 #define PTL_SETXREGS(t, tid, xregs, size) \ argument 112 #define PTL_GETFPREGS(t, tid, fpregs) \ argument 114 ((pt_data_t *)((t)->t_data))->p_ptl_hdl, (tid), (fpregs))) 116 #define PTL_SETFPREGS(t, tid, fpregs) \ argument [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/misc/ |
H A D | tst.roch.d | 46 (long long)curthread, pid, tid, 56 (long long) curthread, pid, tid, 64 (long long)curthread, pid, tid); 70 (long long)curthread, pid, tid, (int)arg1, (int)arg0); 76 (long long)curthread, pid, tid, arg0); 82 (long long) curthread, pid, tid, arg0);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | timer.c | 127 ASSERT(p->p_itimer_sz > tid); in timer_delete_locked() 128 ASSERT(p->p_itimer[tid] == it); in timer_delete_locked() 129 p->p_itimer[tid] = NULL; in timer_delete_locked() 202 timer_grab(proc_t *p, timer_t tid) in timer_grab() argument 206 if (tid < 0) { in timer_grab() 213 (it = itp[tid]) == NULL) { in timer_grab() 256 timer_delete_locked(p, tid, it); in timer_delete_grabbed() 881 timer_delete(timer_t tid) in timer_delete() argument 895 timer_getoverrun(timer_t tid) in timer_getoverrun() argument 1065 timer_t tid; in timer_close_port() local [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | offload.h | 31 #define INIT_ULPTX_WR(w, wrlen, atomic, tid) do { \ argument 35 V_FW_WR_FLOWID(tid)); \ 39 #define INIT_TP_WR(w, tid) do { \ argument 43 V_FW_WR_FLOWID(tid)); \ 47 #define INIT_TP_WR_MIT_CPL(w, cpl, tid) do { \ argument 48 INIT_TP_WR(w, tid); \ 49 OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_nswstate.c | 385 thread_t *tid) in _get_nsw_state_int() argument 514 if (tid == NULL) { in _get_nsw_state_int() 538 else if (thread_only && base->used_by_thr && base->tid != *tid) in _get_nsw_state_int() 608 if (tid == NULL) { in _get_nsw_state_int() 635 base->tid = *tid; in _get_nsw_state_int() 684 thread_t tid = thr_self(); in _nscd_get_nsw_state_thread() local 692 thread_t *tid) in _put_nsw_state_int() argument 721 if (tid != NULL) in _put_nsw_state_int() 741 _nscd_logit(me, "tid = %d\n", (tid == NULL) ? -1 : *tid); in _put_nsw_state_int() 785 _nscd_logit(me, "tid = %d\n", (tid == NULL) ? -1 : *tid); in _put_nsw_state_int() [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_pipesvc.c | 47 pthread_t tid; member 127 pthread_t tid; in smbd_pipesvc_start() local 148 rc = pthread_create(&tid, &tattr, pipesvc_listener, pl); in smbd_pipesvc_start() 151 pipe_listeners[i].tid = tid; in smbd_pipesvc_start() 170 if (pipe_listeners[i].tid == 0) in smbd_pipesvc_stop() 172 (void) pthread_kill(pipe_listeners[i].tid, SIGTERM); in smbd_pipesvc_stop() 173 pipe_listeners[i].tid = 0; in smbd_pipesvc_stop() 185 pthread_t tid; in pipesvc_listener() local 240 rc = pthread_create(&tid, NULL, pipesvc_worker, np); in pipesvc_listener() 247 (void) pthread_detach(tid); in pipesvc_listener() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | thrpool.c | 94 thread_t tid; in svcblock() local 123 THR_BOUND | THR_DETACHED, &tid); in svcblock() 175 thread_t tid; in svcrdma() local 189 THR_BOUND | THR_DETACHED, &tid)) in svcrdma() 198 thread_t tid; in svcwait() local 206 THR_BOUND | THR_DETACHED, &tid)) in svcwait()
|
/illumos-gate/usr/src/test/os-tests/tests/ |
H A D | ucontext.c | 30 static pthread_t tid; variable 52 if (ltid != tid) { in run() 55 ltid, tid); in run() 99 VERIFY0(pthread_create(&tid, NULL, thread, NULL)); in main() 100 VERIFY0(pthread_join(tid, &status)); in main()
|
/illumos-gate/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr_change.c | 57 thread_t tid; /* main nscd tid */ member 119 waiting_list_add(chg_info_t *info, pid_t pid, thread_t tid, in waiting_list_add() argument 130 pid, tid); in waiting_list_add() 135 wl->tid = tid; in waiting_list_add() 153 waiting_list_delete(chg_info_t *info, thread_t tid) in waiting_list_delete() argument 158 if (wl->tid == tid) { in waiting_list_delete() 188 waiting_list_cleanup(chg_info_t *chg, thread_t tid) in waiting_list_cleanup() argument 192 rc = waiting_list_delete(chg, tid); in waiting_list_cleanup() 287 if (thr_kill(chg_main_nscd.tid, 0) == 0) { in chg_get_statusChange() 321 chg_main_nscd.tid = this_tid; in chg_get_statusChange() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libmilter/ |
H A D | monitor.c | 81 sthread_t tid; local 87 tid = (sthread_t) sthread_get_id(); 88 if (pthread_detach(tid) != 0) 152 sthread_t tid; in mi_monitor_init() local 164 r = thread_create(&tid, mi_monitor_thread, (void *)NULL); in mi_monitor_init()
|