/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | trie.c | 214 t_insert(trie_id_t *tid, key_t id, uint32_t key, uint32_t mask) in t_insert() argument 219 uint8_t key_len = (uint8_t)tid->key_len; in t_insert() 223 ++tid->stats.num_dontcare; in t_insert() 227 rw_enter(&tid->rw_lock, RW_WRITER); in t_insert() 228 c_node = tid->trie; /* point at trie root */ in t_insert() 310 ++tid->stats.num_inserted; in t_insert() 315 if (tid->info.dontcareonly == B_TRUE) { in t_insert() 316 tid->info.dontcareonly = B_FALSE; in t_insert() 318 rw_exit(&tid->rw_lock); in t_insert() 328 t_insert6(trie_id_t *tid, key_t id, in6_addr_t key, in6_addr_t mask) in t_insert6() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/arn/ |
H A D | arn_xmit.c | 98 struct ath_atx_tid *tid, list_t *bf_list); 133 struct ath_atx_tid *tid; in arn_aggr_query() local 134 tid = ATH_AN_2_TID(an, tidno); in arn_aggr_query() 136 if (tid->state & AGGR_ADDBA_COMPLETE || in arn_aggr_query() 137 tid->state & AGGR_ADDBA_PROGRESS) in arn_aggr_query() 148 arn_tx_queue_tid(struct ath_txq *txq, struct ath_atx_tid *tid) in arn_tx_queue_tid() argument 150 struct ath_atx_ac *ac = tid->ac; in arn_tx_queue_tid() 153 if (tid->paused) in arn_tx_queue_tid() 157 if (tid->sched) in arn_tx_queue_tid() 160 tid->sched = B_TRUE; in arn_tx_queue_tid() [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() 154 string::size_type len = indent[tid].size(); 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() 66 _thr_setparam(pthread_t tid, int policy, int prio) in _thr_setparam() argument 72 if ((ulwp = find_lwp(tid)) == NULL) { in _thr_setparam() 86 } else if ((cid = setparam(P_LWPID, tid, policy, prio)) == -1) { in _thr_setparam() 114 pthread_t tid; in pthread_create() local 131 flag, &tid, ap->guardsize, ap->name); in pthread_create() 138 (void) _thr_setinherit(tid, ap->inherit); in pthread_create() 149 error = _thr_setparam(tid, ap->policy, ap->prio); in pthread_create() 159 ulwp_t *ulwp = find_lwp(tid); in pthread_create() [all …]
|
H A D | thr.c | 76 #define TIDHASH(tid, udp) (tid & (udp)->hash_mask) argument 499 find_lwpp(thread_t tid) in find_lwpp() argument 502 int ix = TIDHASH(tid, udp); in find_lwpp() 507 if (tid == 0) in find_lwpp() 514 if (ulwp->ul_lwpid == tid) in find_lwpp() 539 find_lwp(thread_t tid) in find_lwp() argument 546 if (self->ul_lwpid == tid) { in find_lwp() 549 } else if ((ulwpp = find_lwpp(tid)) != NULL) { in find_lwp() 569 thread_t tid; in _thrp_create() local 675 (error = __lwp_create(&uc, lwp_flags, &tid)) != 0) { in _thrp_create() [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() 319 if (tsp->started == B_FALSE || tsp->tid == 0) { in xcalwd_timeout() 320 tsp->tid = 0; in xcalwd_timeout() 358 timeout_id_t tid; in xcalwd_close() local 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() 382 (void) untimeout(tid); in xcalwd_close() [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 153 find_member_cb(const char *memname, ctf_id_t tid, ulong_t off, void *arg) in find_member_cb() argument 158 return (tid); in find_member_cb() 165 find_member(ctf_id_t tid, char *memname) in find_member() argument 167 return (ctf_member_iter(ctf, tid, find_member_cb, memname)); in find_member() 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() [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() 318 fth_print_array(char *memname, ctf_id_t tid, ulong_t off, ssize_t sz, in fth_print_array() argument 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() [all …]
|
/illumos-gate/usr/src/cmd/latencytop/ |
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, 217 @lt_named_count[pid, tid, "Wait for available CPU"] = count(); 218 @lt_named_sum[pid, tid, "Wait for available CPU"] = 220 @lt_named_max[pid, tid, "Wait for available CPU"] = 232 @lt_named_count[pid, tid, "Adapt. lock spin"] = count(); 233 @lt_named_sum[pid, tid, "Adapt. lock spin"] = sum(arg1); 234 @lt_named_max[pid, tid, "Adapt. lock spin"] = max(arg1); 240 @lt_named_count[pid, tid, "Spinlock spin"] = count(); [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/lib/libbsm/common/ |
H A D | audit_rexecd.c | 141 au_tid_addr_t tid; local 185 tid.at_port = aug_get_port(); 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; 196 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid, &tid)); 252 au_tid_addr_t tid; local 296 tid.at_port = aug_get_port(); [all …]
|
H A D | au_to.c | 432 pid_t pid, au_asid_t sid, au_tid_t *tid) in au_to_process() argument 459 adr_int64(&adr, (int64_t *)&tid->port, 1); in au_to_process() 461 adr_int32(&adr, (int32_t *)&tid->port, 1); in au_to_process() 463 adr_int32(&adr, (int32_t *)&tid->machine, 1); in au_to_process() 475 pid_t pid, au_asid_t sid, au_tid_addr_t *tid) in au_to_process_ex() argument 482 if (tid->at_type == AU_IPv6) { in au_to_process_ex() 492 if (tid->at_type == AU_IPv6) { in au_to_process_ex() 512 adr_int64(&adr, (int64_t *)&tid->at_port, 1); in au_to_process_ex() 514 adr_int32(&adr, (int32_t *)&tid->at_port, 1); in au_to_process_ex() 516 if (tid->at_type == AU_IPv6) { in au_to_process_ex() [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/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 110 ((pt_data_t *)((t)->t_data))->p_ptl_hdl, (tid), (xregs), (size))) 112 #define PTL_GETFPREGS(t, tid, fpregs) \ argument 114 ((pt_data_t *)((t)->t_data))->p_ptl_hdl, (tid), (fpregs))) [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 | 107 timer_delete_locked(proc_t *p, timer_t tid, itimer_t *it) in timer_delete_locked() argument 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() 212 if ((itp = p->p_itimer) == NULL || tid >= p->p_itimer_sz || in timer_grab() 213 (it = itp[tid]) == NULL) { in timer_grab() 253 timer_delete_grabbed(proc_t *p, timer_t tid, itimer_t *it) in timer_delete_grabbed() argument 256 timer_delete_locked(p, tid, it); in timer_delete_grabbed() [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() 522 _nscd_logit(me, "tid = %d\n", *tid); in _get_nsw_state_int() 523 _nscd_logit(me, "tid in base = %d\n", base->tid); 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() 641 _nscd_logit(me, "tid = %d\n", *tid); in _get_nsw_state_int() 642 _nscd_logit(me, "tid in base = %d\n", base->tid); in _get_nsw_state_int() 684 thread_t tid = thr_self(); in _nscd_get_nsw_state_thread() local [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/uts/common/io/net80211/ |
H A D | net80211_ht.c | 381 uint8_t tid; in ieee80211_ampdu_reorder() local 391 tid = ((struct ieee80211_qosframe_addr4 *)wh)->i_qos[0]; in ieee80211_ampdu_reorder() 393 tid = wh->i_qos[0]; in ieee80211_ampdu_reorder() 394 tid &= IEEE80211_QOS_TID; in ieee80211_ampdu_reorder() 395 rap = &in->in_rx_ampdu[tid]; in ieee80211_ampdu_reorder() 494 rxseq, tid, rap->rxa_start, in ieee80211_ampdu_reorder() 511 rap->rxa_qframes, rxseq, tid); in ieee80211_ampdu_reorder() 534 rap->rxa_qframes, rxseq, tid, in ieee80211_ampdu_reorder() 556 int tid, off; in ieee80211_recv_bar() local 560 tid = MS(LE_16(wh->i_ctl), IEEE80211_BAR_TID); in ieee80211_recv_bar() [all …]
|