lib/libc/stdio/_flock_stub.c
100
pthread_t curthread = _pthread_self();
lib/libc/stdio/_flock_stub.c
105
if (fp->_fl_owner == curthread) {
lib/libc/stdio/_flock_stub.c
52
pthread_t curthread = _pthread_self();
lib/libc/stdio/_flock_stub.c
54
if (fp->_fl_owner == curthread)
lib/libc/stdio/_flock_stub.c
62
fp->_fl_owner = curthread;
lib/libc/stdio/_flock_stub.c
79
pthread_t curthread = _pthread_self();
lib/libc/stdio/_flock_stub.c
82
if (fp->_fl_owner == curthread)
lib/libc/stdio/_flock_stub.c
89
fp->_fl_owner = curthread;
lib/libthread_xu/thread/thr_affinity.c
105
THR_THREAD_UNLOCK(curthread, thread);
lib/libthread_xu/thread/thr_affinity.c
106
_thr_ref_delete(curthread, thread);
lib/libthread_xu/thread/thr_affinity.c
44
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_affinity.c
48
if (curthread == thread) {
lib/libthread_xu/thread/thr_affinity.c
54
if (_thr_ref_add(curthread, thread, 0) == 0) {
lib/libthread_xu/thread/thr_affinity.c
55
THR_THREAD_LOCK(curthread, thread);
lib/libthread_xu/thread/thr_affinity.c
61
THR_THREAD_UNLOCK(curthread, thread);
lib/libthread_xu/thread/thr_affinity.c
62
_thr_ref_delete(curthread, thread);
lib/libthread_xu/thread/thr_affinity.c
82
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_affinity.c
92
if (curthread == thread) {
lib/libthread_xu/thread/thr_affinity.c
98
if (_thr_ref_add(curthread, thread, 0) == 0) {
lib/libthread_xu/thread/thr_affinity.c
99
THR_THREAD_LOCK(curthread, thread);
lib/libthread_xu/thread/thr_attr.c
75
pthread_t curthread;
lib/libthread_xu/thread/thr_attr.c
82
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_attr.c
83
if ((ret = _thr_ref_add(curthread, pid, /*include dead*/0)) != 0)
lib/libthread_xu/thread/thr_attr.c
88
_thr_ref_delete(curthread, pid);
lib/libthread_xu/thread/thr_barrier.c
100
THR_UMTX_UNLOCK(curthread, &bar->b_lock);
lib/libthread_xu/thread/thr_barrier.c
80
pthread_t curthread;
lib/libthread_xu/thread/thr_barrier.c
89
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_barrier.c
90
THR_UMTX_LOCK(curthread, &bar->b_lock);
lib/libthread_xu/thread/thr_barrier.c
96
THR_UMTX_UNLOCK(curthread, &bar->b_lock);
lib/libthread_xu/thread/thr_cancel.c
106
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_cancel.c
109
oldval = curthread->cancelflags;
lib/libthread_xu/thread/thr_cancel.c
116
atomic_set_int(&curthread->cancelflags, THR_CANCEL_AT_POINT);
lib/libthread_xu/thread/thr_cancel.c
117
testcancel(curthread);
lib/libthread_xu/thread/thr_cancel.c
120
atomic_clear_int(&curthread->cancelflags, THR_CANCEL_AT_POINT);
lib/libthread_xu/thread/thr_cancel.c
136
_thr_cancel_enter(pthread_t curthread)
lib/libthread_xu/thread/thr_cancel.c
140
oldval = curthread->cancelflags;
lib/libthread_xu/thread/thr_cancel.c
142
atomic_set_int(&curthread->cancelflags, THR_CANCEL_AT_POINT);
lib/libthread_xu/thread/thr_cancel.c
143
testcancel(curthread);
lib/libthread_xu/thread/thr_cancel.c
149
_thr_cancel_leave(pthread_t curthread, int previous)
lib/libthread_xu/thread/thr_cancel.c
152
atomic_clear_int(&curthread->cancelflags, THR_CANCEL_AT_POINT);
lib/libthread_xu/thread/thr_cancel.c
38
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_cancel.c
48
if ((ret = _thr_ref_add(curthread, pthread, 0)) != 0) {
lib/libthread_xu/thread/thr_cancel.c
63
_thr_ref_delete(curthread, pthread);
lib/libthread_xu/thread/thr_cancel.c
69
testcancel(pthread_t curthread)
lib/libthread_xu/thread/thr_cancel.c
73
newval = curthread->cancelflags;
lib/libthread_xu/thread/thr_cancel.c
81
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_cancel.c
84
oldval = curthread->cancelflags;
lib/libthread_xu/thread/thr_cancel.c
90
atomic_set_int(&curthread->cancelflags, THR_CANCEL_DISABLE);
lib/libthread_xu/thread/thr_cancel.c
93
atomic_clear_int(&curthread->cancelflags, THR_CANCEL_DISABLE);
lib/libthread_xu/thread/thr_cancel.c
94
testcancel(curthread);
lib/libthread_xu/thread/thr_clean.c
44
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_clean.c
52
new->next = curthread->cleanup;
lib/libthread_xu/thread/thr_clean.c
54
curthread->cleanup = new;
lib/libthread_xu/thread/thr_clean.c
61
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_clean.c
64
if ((old = curthread->cleanup) != NULL) {
lib/libthread_xu/thread/thr_clean.c
65
curthread->cleanup = old->next;
lib/libthread_xu/thread/thr_cond.c
157
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_cond.c
166
THR_LOCK_ACQUIRE(curthread, &(*cond)->c_lock);
lib/libthread_xu/thread/thr_cond.c
168
THR_LOCK_RELEASE(curthread, &(*cond)->c_lock);
lib/libthread_xu/thread/thr_cond.c
180
THR_LOCK_RELEASE(curthread, &cv->c_lock);
lib/libthread_xu/thread/thr_cond.c
206
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_cond.c
211
THR_LOCK_ACQUIRE(curthread, &cv->c_lock);
lib/libthread_xu/thread/thr_cond.c
220
THR_LOCK_RELEASE(curthread, &cv->c_lock);
lib/libthread_xu/thread/thr_cond.c
234
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_cond.c
248
(ret = init_static(curthread, cond)) != 0)) {
lib/libthread_xu/thread/thr_cond.c
254
THR_LOCK_ACQUIRE(curthread, &cv->c_lock);
lib/libthread_xu/thread/thr_cond.c
258
THR_LOCK_RELEASE(curthread, &cv->c_lock);
lib/libthread_xu/thread/thr_cond.c
273
THR_LOCK_RELEASE(curthread, &cv->c_lock);
lib/libthread_xu/thread/thr_cond.c
284
THR_CLEANUP_PUSH(curthread, cond_cancel_handler, &info);
lib/libthread_xu/thread/thr_cond.c
285
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_cond.c
288
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_cond.c
289
THR_CLEANUP_POP(curthread, 0);
lib/libthread_xu/thread/thr_cond.c
298
THR_LOCK_ACQUIRE(curthread, &cv->c_lock);
lib/libthread_xu/thread/thr_cond.c
311
THR_LOCK_RELEASE(curthread, &cv->c_lock);
lib/libthread_xu/thread/thr_cond.c
363
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_cond.c
375
(ret = init_static(curthread, cond)) != 0)) {
lib/libthread_xu/thread/thr_cond.c
382
THR_LOCK_ACQUIRE(curthread, &cv->c_lock);
lib/libthread_xu/thread/thr_cond.c
391
THR_LOCK_RELEASE(curthread, &cv->c_lock);
lib/libthread_xu/thread/thr_create.c
118
THR_LOCK(curthread);
lib/libthread_xu/thread/thr_create.c
119
new_thread->base_priority = curthread->base_priority;
lib/libthread_xu/thread/thr_create.c
120
new_thread->attr.prio = curthread->attr.prio;
lib/libthread_xu/thread/thr_create.c
121
new_thread->attr.sched_policy = curthread->attr.sched_policy;
lib/libthread_xu/thread/thr_create.c
122
THR_UNLOCK(curthread);
lib/libthread_xu/thread/thr_create.c
147
_thr_link(curthread, new_thread);
lib/libthread_xu/thread/thr_create.c
150
if (SHOULD_REPORT_EVENT(curthread, TD_CREATE)) {
lib/libthread_xu/thread/thr_create.c
151
THR_THREAD_LOCK(curthread, new_thread);
lib/libthread_xu/thread/thr_create.c
177
THR_THREAD_LOCK(curthread, new_thread);
lib/libthread_xu/thread/thr_create.c
184
THR_THREAD_UNLOCK(curthread, new_thread);
lib/libthread_xu/thread/thr_create.c
185
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_create.c
188
_thr_ref_delete_unlocked(curthread, new_thread);
lib/libthread_xu/thread/thr_create.c
189
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_create.c
193
_thr_report_creation(curthread, new_thread);
lib/libthread_xu/thread/thr_create.c
194
THR_THREAD_UNLOCK(curthread, new_thread);
lib/libthread_xu/thread/thr_create.c
218
pthread_t curthread = (pthread_t)arg;
lib/libthread_xu/thread/thr_create.c
220
tls_set_tcb(curthread->tcb);
lib/libthread_xu/thread/thr_create.c
223
__sys_sigprocmask(SIG_SETMASK, &curthread->sigmask, NULL);
lib/libthread_xu/thread/thr_create.c
225
THR_LOCK(curthread);
lib/libthread_xu/thread/thr_create.c
226
THR_UNLOCK(curthread);
lib/libthread_xu/thread/thr_create.c
228
if (curthread->flags & THR_FLAGS_NEED_SUSPEND)
lib/libthread_xu/thread/thr_create.c
229
_thr_suspend_check(curthread);
lib/libthread_xu/thread/thr_create.c
233
_pthread_exit(curthread->start_routine(curthread->arg));
lib/libthread_xu/thread/thr_create.c
58
pthread_t curthread, new_thread;
lib/libthread_xu/thread/thr_create.c
70
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_create.c
71
if ((new_thread = _thr_alloc(curthread)) == NULL)
lib/libthread_xu/thread/thr_create.c
82
if (curthread->attr.flags & PTHREAD_SCOPE_SYSTEM)
lib/libthread_xu/thread/thr_create.c
97
_thr_free(curthread, new_thread);
lib/libthread_xu/thread/thr_detach.c
39
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_detach.c
45
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_detach.c
46
if ((rval = _thr_find_thread(curthread, pthread,
lib/libthread_xu/thread/thr_detach.c
48
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_detach.c
55
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_detach.c
63
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_distribute.c
31
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_distribute.c
35
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_distribute.c
41
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_event.c
45
_thr_report_creation(pthread_t curthread, pthread_t newthread)
lib/libthread_xu/thread/thr_event.c
47
curthread->event_buf.event = TD_CREATE;
lib/libthread_xu/thread/thr_event.c
48
curthread->event_buf.th_p = (td_thrhandle_t *)newthread;
lib/libthread_xu/thread/thr_event.c
49
curthread->event_buf.data = 0;
lib/libthread_xu/thread/thr_event.c
50
THR_UMTX_LOCK(curthread, &_thr_event_lock);
lib/libthread_xu/thread/thr_event.c
51
_thread_last_event = curthread;
lib/libthread_xu/thread/thr_event.c
54
THR_UMTX_UNLOCK(curthread, &_thr_event_lock);
lib/libthread_xu/thread/thr_event.c
58
_thr_report_death(pthread_t curthread)
lib/libthread_xu/thread/thr_event.c
60
curthread->event_buf.event = TD_DEATH;
lib/libthread_xu/thread/thr_event.c
61
curthread->event_buf.th_p = (td_thrhandle_t *)curthread;
lib/libthread_xu/thread/thr_event.c
62
curthread->event_buf.data = 0;
lib/libthread_xu/thread/thr_event.c
63
THR_UMTX_LOCK(curthread, &_thr_event_lock);
lib/libthread_xu/thread/thr_event.c
64
_thread_last_event = curthread;
lib/libthread_xu/thread/thr_event.c
67
THR_UMTX_UNLOCK(curthread, &_thr_event_lock);
lib/libthread_xu/thread/thr_exit.c
102
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_exit.c
105
if ((curthread->cancelflags & THR_CANCEL_EXITING) != 0) {
lib/libthread_xu/thread/thr_exit.c
108
"1996 s16.2.5.2 does not allow this!", curthread);
lib/libthread_xu/thread/thr_exit.c
112
atomic_set_int(&curthread->cancelflags, THR_CANCEL_EXITING);
lib/libthread_xu/thread/thr_exit.c
117
curthread->ret = status;
lib/libthread_xu/thread/thr_exit.c
118
while (curthread->cleanup != NULL) {
lib/libthread_xu/thread/thr_exit.c
132
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_exit.c
135
if (curthread->specific != NULL) {
lib/libthread_xu/thread/thr_exit.c
143
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_exit.c
146
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_exit.c
150
THR_LOCK(curthread);
lib/libthread_xu/thread/thr_exit.c
151
curthread->state = PS_DEAD;
lib/libthread_xu/thread/thr_exit.c
152
THR_UNLOCK(curthread);
lib/libthread_xu/thread/thr_exit.c
153
curthread->refcount--;
lib/libthread_xu/thread/thr_exit.c
154
if (curthread->tlflags & TLFLAGS_DETACHED)
lib/libthread_xu/thread/thr_exit.c
155
THR_GCLIST_ADD(curthread);
lib/libthread_xu/thread/thr_exit.c
156
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_exit.c
157
if (curthread->joiner)
lib/libthread_xu/thread/thr_exit.c
158
_thr_umtx_wake(&curthread->state, 0);
lib/libthread_xu/thread/thr_exit.c
159
if (SHOULD_REPORT_EVENT(curthread, TD_DEATH))
lib/libthread_xu/thread/thr_exit.c
160
_thr_report_death(curthread);
lib/libthread_xu/thread/thr_exit.c
162
extexit(EXTEXIT_SETINT|EXTEXIT_LWP, 1, &curthread->terminated);
lib/libthread_xu/thread/thr_exit.c
81
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_exit.c
91
_mutex_unlock_private(curthread);
lib/libthread_xu/thread/thr_fork.c
100
THR_UMTX_LOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
102
THR_UMTX_UNLOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
120
pthread_t curthread;
lib/libthread_xu/thread/thr_fork.c
125
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_fork.c
129
THR_UMTX_LOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
131
THR_UMTX_UNLOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
137
pthread_t curthread;
lib/libthread_xu/thread/thr_fork.c
140
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_fork.c
141
THR_UMTX_LOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
150
THR_UMTX_UNLOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
168
pthread_t curthread;
lib/libthread_xu/thread/thr_fork.c
180
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_fork.c
182
THR_UMTX_LOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
186
THR_UMTX_UNLOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
188
THR_UMTX_LOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
193
THR_UMTX_UNLOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
219
_thr_signal_block(curthread);
lib/libthread_xu/thread/thr_fork.c
247
curthread->cancelflags &= ~THR_CANCEL_NEEDED;
lib/libthread_xu/thread/thr_fork.c
252
curthread->tlflags &= ~(TLFLAGS_IN_TDLIST | TLFLAGS_DETACHED);
lib/libthread_xu/thread/thr_fork.c
255
curthread->tid = _thr_get_tid();
lib/libthread_xu/thread/thr_fork.c
258
_thr_umtx_init(&curthread->lock);
lib/libthread_xu/thread/thr_fork.c
267
_mutex_fork(curthread, curthread->tid);
lib/libthread_xu/thread/thr_fork.c
270
_libpthread_init(curthread);
lib/libthread_xu/thread/thr_fork.c
273
_thr_signal_unblock(curthread);
lib/libthread_xu/thread/thr_fork.c
298
_thr_signal_unblock(curthread);
lib/libthread_xu/thread/thr_fork.c
305
THR_UMTX_LOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
309
THR_UMTX_UNLOCK(curthread, &_thr_atfork_lock);
lib/libthread_xu/thread/thr_fork.c
89
pthread_t curthread;
lib/libthread_xu/thread/thr_fork.c
96
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_getschedparam.c
46
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_getschedparam.c
52
if (pthread == curthread) {
lib/libthread_xu/thread/thr_getschedparam.c
57
THR_LOCK(curthread);
lib/libthread_xu/thread/thr_getschedparam.c
58
*policy = curthread->attr.sched_policy;
lib/libthread_xu/thread/thr_getschedparam.c
59
param->sched_priority = curthread->attr.prio;
lib/libthread_xu/thread/thr_getschedparam.c
60
THR_UNLOCK(curthread);
lib/libthread_xu/thread/thr_getschedparam.c
63
else if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0))
lib/libthread_xu/thread/thr_getschedparam.c
65
THR_THREAD_LOCK(curthread, pthread);
lib/libthread_xu/thread/thr_getschedparam.c
68
THR_THREAD_UNLOCK(curthread, pthread);
lib/libthread_xu/thread/thr_getschedparam.c
69
_thr_ref_delete(curthread, pthread);
lib/libthread_xu/thread/thr_getthreadid_np.c
38
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_getthreadid_np.c
39
return curthread->tid;
lib/libthread_xu/thread/thr_info.c
47
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_info.c
52
if (curthread == thread) {
lib/libthread_xu/thread/thr_info.c
56
if ((error = _thr_ref_add(curthread, thread, 0)) == 0) {
lib/libthread_xu/thread/thr_info.c
57
THR_THREAD_LOCK(curthread, thread);
lib/libthread_xu/thread/thr_info.c
62
THR_THREAD_UNLOCK(curthread, thread);
lib/libthread_xu/thread/thr_info.c
63
_thr_ref_delete(curthread, thread);
lib/libthread_xu/thread/thr_info.c
81
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_info.c
86
if (curthread == thread) {
lib/libthread_xu/thread/thr_info.c
90
if ((error = _thr_ref_add(curthread, thread, 0)) == 0) {
lib/libthread_xu/thread/thr_info.c
91
THR_THREAD_LOCK(curthread, thread);
lib/libthread_xu/thread/thr_info.c
98
THR_THREAD_UNLOCK(curthread, thread);
lib/libthread_xu/thread/thr_info.c
99
_thr_ref_delete(curthread, thread);
lib/libthread_xu/thread/thr_init.c
238
_libpthread_init(pthread_t curthread)
lib/libthread_xu/thread/thr_init.c
244
if ((_thr_initial != NULL) && (curthread == NULL))
lib/libthread_xu/thread/thr_init.c
273
if (curthread == NULL) {
lib/libthread_xu/thread/thr_init.c
276
curthread = _thr_alloc(NULL);
lib/libthread_xu/thread/thr_init.c
277
if (curthread == NULL)
lib/libthread_xu/thread/thr_init.c
279
init_main_thread(curthread);
lib/libthread_xu/thread/thr_init.c
284
THR_LIST_ADD(curthread);
lib/libthread_xu/thread/thr_init.c
288
tls_set_tcb(curthread->tcb);
lib/libthread_xu/thread/thr_init.c
294
_thr_initial = curthread;
lib/libthread_xu/thread/thr_init.c
298
_thr_report_creation(curthread, curthread);
lib/libthread_xu/thread/thr_join.c
101
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_join.c
103
THR_CLEANUP_PUSH(curthread, backout_join, pthread);
lib/libthread_xu/thread/thr_join.c
104
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_join.c
124
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_join.c
125
THR_CLEANUP_POP(curthread, 0);
lib/libthread_xu/thread/thr_join.c
128
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_join.c
130
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_join.c
134
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_join.c
138
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_join.c
43
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_join.c
46
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_join.c
48
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_join.c
72
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_join.c
82
if (pthread == curthread)
lib/libthread_xu/thread/thr_join.c
85
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_join.c
86
if ((ret = _thr_find_thread(curthread, pthread, 1)) != 0) {
lib/libthread_xu/thread/thr_join.c
95
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_join.c
99
pthread->joiner = curthread;
lib/libthread_xu/thread/thr_kern.c
198
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_kern.c
202
if (lwpid == curthread->tid)
lib/libthread_xu/thread/thr_kern.c
214
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_kern.c
217
if (lwpid == curthread->tid)
lib/libthread_xu/thread/thr_kern.c
69
_thr_signal_block(pthread_t curthread)
lib/libthread_xu/thread/thr_kern.c
73
if (curthread->sigblock > 0) {
lib/libthread_xu/thread/thr_kern.c
74
curthread->sigblock++;
lib/libthread_xu/thread/thr_kern.c
83
__sys_sigprocmask(SIG_BLOCK, &set, &curthread->sigmask);
lib/libthread_xu/thread/thr_kern.c
84
curthread->sigblock++;
lib/libthread_xu/thread/thr_kern.c
88
_thr_signal_unblock(pthread_t curthread)
lib/libthread_xu/thread/thr_kern.c
90
if (--curthread->sigblock == 0)
lib/libthread_xu/thread/thr_kern.c
91
__sys_sigprocmask(SIG_SETMASK, &curthread->sigmask, NULL);
lib/libthread_xu/thread/thr_kill.c
43
pthread_t curthread;
lib/libthread_xu/thread/thr_kill.c
51
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_kill.c
58
if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0))
lib/libthread_xu/thread/thr_kill.c
62
_thr_ref_delete(curthread, pthread);
lib/libthread_xu/thread/thr_list.c
104
_thr_gc(pthread_t curthread)
lib/libthread_xu/thread/thr_list.c
110
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_list.c
132
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_list.c
145
_thr_free(curthread, td);
lib/libthread_xu/thread/thr_list.c
150
_thr_alloc(pthread_t curthread)
lib/libthread_xu/thread/thr_list.c
155
if (curthread != NULL) {
lib/libthread_xu/thread/thr_list.c
157
_thr_gc(curthread);
lib/libthread_xu/thread/thr_list.c
159
THR_LOCK_ACQUIRE(curthread, &free_thread_lock);
lib/libthread_xu/thread/thr_list.c
164
THR_LOCK_RELEASE(curthread, &free_thread_lock);
lib/libthread_xu/thread/thr_list.c
172
if (curthread != NULL) {
lib/libthread_xu/thread/thr_list.c
173
THR_LOCK_ACQUIRE(curthread, &tcb_lock);
lib/libthread_xu/thread/thr_list.c
175
THR_LOCK_RELEASE(curthread, &tcb_lock);
lib/libthread_xu/thread/thr_list.c
183
thr_destroy(curthread, thread);
lib/libthread_xu/thread/thr_list.c
190
_thr_free(pthread_t curthread, pthread_t thread)
lib/libthread_xu/thread/thr_list.c
202
if (curthread != NULL) {
lib/libthread_xu/thread/thr_list.c
203
THR_LOCK_ACQUIRE(curthread, &tcb_lock);
lib/libthread_xu/thread/thr_list.c
205
THR_LOCK_RELEASE(curthread, &tcb_lock);
lib/libthread_xu/thread/thr_list.c
210
if ((curthread == NULL) || (free_thread_count >= MAX_CACHED_THREADS)) {
lib/libthread_xu/thread/thr_list.c
211
thr_destroy(curthread, thread);
lib/libthread_xu/thread/thr_list.c
217
THR_LOCK_ACQUIRE(curthread, &free_thread_lock);
lib/libthread_xu/thread/thr_list.c
220
THR_LOCK_RELEASE(curthread, &free_thread_lock);
lib/libthread_xu/thread/thr_list.c
225
thr_destroy(pthread_t curthread __unused, pthread_t thread)
lib/libthread_xu/thread/thr_list.c
239
_thr_link(pthread_t curthread, pthread_t thread)
lib/libthread_xu/thread/thr_list.c
241
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_list.c
250
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_list.c
257
_thr_unlink(pthread_t curthread, pthread_t thread)
lib/libthread_xu/thread/thr_list.c
259
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_list.c
262
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_list.c
300
_thr_ref_add(pthread_t curthread, pthread_t thread,
lib/libthread_xu/thread/thr_list.c
309
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_list.c
310
if ((ret = _thr_find_thread(curthread, thread, include_dead)) == 0) {
lib/libthread_xu/thread/thr_list.c
313
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_list.c
320
_thr_ref_delete(pthread_t curthread, pthread_t thread)
lib/libthread_xu/thread/thr_list.c
322
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_list.c
323
_thr_ref_delete_unlocked(curthread, thread);
lib/libthread_xu/thread/thr_list.c
324
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_list.c
328
_thr_ref_delete_unlocked(pthread_t curthread __unused, pthread_t thread)
lib/libthread_xu/thread/thr_list.c
339
_thr_find_thread(pthread_t curthread __unused, pthread_t thread,
lib/libthread_xu/thread/thr_list.c
83
static void thr_destroy(pthread_t curthread, pthread_t thread);
lib/libthread_xu/thread/thr_mutex.c
115
mutex_log2(pthread_t curthread, pthread_mutex_t m, int op)
lib/libthread_xu/thread/thr_mutex.c
117
if (curthread) {
lib/libthread_xu/thread/thr_mutex.c
118
if (curthread->tid < 32)
lib/libthread_xu/thread/thr_mutex.c
119
m->m_lastop[curthread->tid] =
lib/libthread_xu/thread/thr_mutex.c
131
mutex_log2(pthread_t curthread __unused,
lib/libthread_xu/thread/thr_mutex.c
281
_mutex_fork(pthread_t curthread, lwpid_t tid)
lib/libthread_xu/thread/thr_mutex.c
285
TAILQ_FOREACH(m, &curthread->mutexq, m_qe)
lib/libthread_xu/thread/thr_mutex.c
292
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_mutex.c
305
ret = THR_UMTX_TRYLOCK_PERSIST(curthread, &(*mutex)->m_lock);
lib/libthread_xu/thread/thr_mutex.c
317
THR_UMTX_UNLOCK_PERSIST(curthread, &(*mutex)->m_lock);
lib/libthread_xu/thread/thr_mutex.c
328
THR_UMTX_UNLOCK_PERSIST(curthread, &m->m_lock);
lib/libthread_xu/thread/thr_mutex.c
344
mutex_trylock_common(pthread_t curthread, pthread_mutex_t *mutex)
lib/libthread_xu/thread/thr_mutex.c
351
ret = THR_UMTX_TRYLOCK_PERSIST(curthread, &m->m_lock);
lib/libthread_xu/thread/thr_mutex.c
353
mutex_log2(curthread, m, 1);
lib/libthread_xu/thread/thr_mutex.c
354
m->m_owner = curthread;
lib/libthread_xu/thread/thr_mutex.c
357
TAILQ_INSERT_TAIL(&curthread->mutexq, m, m_qe);
lib/libthread_xu/thread/thr_mutex.c
358
} else if (m->m_owner == curthread) {
lib/libthread_xu/thread/thr_mutex.c
359
mutex_log2(curthread, m, 2);
lib/libthread_xu/thread/thr_mutex.c
370
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_mutex.c
380
ret = init_static(curthread, m);
lib/libthread_xu/thread/thr_mutex.c
384
return (mutex_trylock_common(curthread, m));
lib/libthread_xu/thread/thr_mutex.c
390
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_mutex.c
398
ret = init_static_private(curthread, m);
lib/libthread_xu/thread/thr_mutex.c
402
return (mutex_trylock_common(curthread, m));
lib/libthread_xu/thread/thr_mutex.c
406
mutex_lock_common(pthread_t curthread, pthread_mutex_t *mutex,
lib/libthread_xu/thread/thr_mutex.c
415
ret = THR_UMTX_TRYLOCK_PERSIST(curthread, &m->m_lock);
lib/libthread_xu/thread/thr_mutex.c
417
mutex_log2(curthread, m, 3);
lib/libthread_xu/thread/thr_mutex.c
418
m->m_owner = curthread;
lib/libthread_xu/thread/thr_mutex.c
421
TAILQ_INSERT_TAIL(&curthread->mutexq, m, m_qe);
lib/libthread_xu/thread/thr_mutex.c
422
} else if (m->m_owner == curthread) {
lib/libthread_xu/thread/thr_mutex.c
426
THR_UMTX_LOCK_PERSIST(curthread, &m->m_lock);
lib/libthread_xu/thread/thr_mutex.c
435
ret = THR_UMTX_TIMEDLOCK_PERSIST(curthread,
lib/libthread_xu/thread/thr_mutex.c
439
mutex_log2(curthread, m, 4);
lib/libthread_xu/thread/thr_mutex.c
440
m->m_owner = curthread;
lib/libthread_xu/thread/thr_mutex.c
443
TAILQ_INSERT_TAIL(&curthread->mutexq, m, m_qe);
lib/libthread_xu/thread/thr_mutex.c
454
pthread_t curthread;
lib/libthread_xu/thread/thr_mutex.c
464
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_mutex.c
466
ret = init_static(curthread, m);
lib/libthread_xu/thread/thr_mutex.c
470
return (mutex_lock_common(curthread, m, NULL));
lib/libthread_xu/thread/thr_mutex.c
476
pthread_t curthread;
lib/libthread_xu/thread/thr_mutex.c
488
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_mutex.c
490
ret = init_static_private(curthread, m);
lib/libthread_xu/thread/thr_mutex.c
494
return (mutex_lock_common(curthread, m, NULL));
lib/libthread_xu/thread/thr_mutex.c
501
pthread_t curthread;
lib/libthread_xu/thread/thr_mutex.c
513
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_mutex.c
515
ret = init_static(curthread, m);
lib/libthread_xu/thread/thr_mutex.c
519
return (mutex_lock_common(curthread, m, abs_timeout));
lib/libthread_xu/thread/thr_mutex.c
526
pthread_t curthread;
lib/libthread_xu/thread/thr_mutex.c
532
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_mutex.c
539
ret = init_static_private(curthread, m);
lib/libthread_xu/thread/thr_mutex.c
543
return (mutex_lock_common(curthread, m, abs_timeout));
lib/libthread_xu/thread/thr_mutex.c
645
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_mutex.c
649
mutex_log2(curthread, m, 252);
lib/libthread_xu/thread/thr_mutex.c
653
if (__predict_false(m->m_owner != curthread)) {
lib/libthread_xu/thread/thr_mutex.c
655
mutex_log2(curthread, m, 253);
lib/libthread_xu/thread/thr_mutex.c
663
mutex_log2(curthread, m, 254);
lib/libthread_xu/thread/thr_mutex.c
672
TAILQ_REMOVE(&curthread->mutexq, m, m_qe);
lib/libthread_xu/thread/thr_mutex.c
681
THR_UMTX_UNLOCK_PERSIST(curthread, &m->m_lock);
lib/libthread_xu/thread/thr_mutex.c
683
mutex_log2(curthread, m, 255);
lib/libthread_xu/thread/thr_mutex.c
735
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_mutex.c
742
if (__predict_false(m->m_owner != curthread))
lib/libthread_xu/thread/thr_mutex.c
752
TAILQ_REMOVE(&curthread->mutexq, m, m_qe);
lib/libthread_xu/thread/thr_mutex.c
754
THR_UMTX_UNLOCK_PERSIST(curthread, &m->m_lock);
lib/libthread_xu/thread/thr_mutex.c
755
mutex_log2(curthread, m, 250);
lib/libthread_xu/thread/thr_pspinlock.c
110
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_pspinlock.c
116
THR_UMTX_UNLOCK_PERSIST(curthread, &lck->s_lock);
lib/libthread_xu/thread/thr_pspinlock.c
75
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_pspinlock.c
80
return (THR_UMTX_TRYLOCK_PERSIST(curthread, &lck->s_lock));
lib/libthread_xu/thread/thr_pspinlock.c
86
pthread_t curthread;
lib/libthread_xu/thread/thr_pspinlock.c
93
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_pspinlock.c
95
while (THR_UMTX_TRYLOCK_PERSIST(curthread, &lck->s_lock) != 0) {
lib/libthread_xu/thread/thr_resume_np.c
46
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_resume_np.c
50
if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0)) == 0) {
lib/libthread_xu/thread/thr_resume_np.c
52
THR_THREAD_LOCK(curthread, thread);
lib/libthread_xu/thread/thr_resume_np.c
54
THR_THREAD_UNLOCK(curthread, thread);
lib/libthread_xu/thread/thr_resume_np.c
55
_thr_ref_delete(curthread, thread);
lib/libthread_xu/thread/thr_resume_np.c
63
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_resume_np.c
67
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_resume_np.c
70
if (thread != curthread) {
lib/libthread_xu/thread/thr_resume_np.c
71
THR_THREAD_LOCK(curthread, thread);
lib/libthread_xu/thread/thr_resume_np.c
73
THR_THREAD_UNLOCK(curthread, thread);
lib/libthread_xu/thread/thr_resume_np.c
78
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_rwlock.c
184
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_rwlock.c
195
if ((ret = init_static(curthread, rwlock)) != 0)
lib/libthread_xu/thread/thr_rwlock.c
215
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_rwlock.c
216
if ((curthread->rdlock_count > 0) && (prwlock->state > 0)) {
lib/libthread_xu/thread/thr_rwlock.c
257
curthread->rdlock_count++;
lib/libthread_xu/thread/thr_rwlock.c
288
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_rwlock.c
299
if ((ret = init_static(curthread, rwlock)) != 0)
lib/libthread_xu/thread/thr_rwlock.c
309
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_rwlock.c
312
else if ((curthread->rdlock_count > 0) && (prwlock->state > 0)) {
lib/libthread_xu/thread/thr_rwlock.c
314
curthread->rdlock_count++;
lib/libthread_xu/thread/thr_rwlock.c
321
curthread->rdlock_count++;
lib/libthread_xu/thread/thr_rwlock.c
334
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_rwlock.c
345
if ((ret = init_static(curthread, rwlock)) != 0)
lib/libthread_xu/thread/thr_rwlock.c
370
pthread_t curthread;
lib/libthread_xu/thread/thr_rwlock.c
388
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_rwlock.c
393
curthread->rdlock_count--;
lib/libthread_xu/thread/thr_rwlock.c
421
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_rwlock.c
432
if ((ret = init_static(curthread, rwlock)) != 0)
lib/libthread_xu/thread/thr_sem.c
299
pthread_t curthread;
lib/libthread_xu/thread/thr_sem.c
307
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_sem.c
322
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_sem.c
327
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_sem.c
341
pthread_t curthread;
lib/libthread_xu/thread/thr_sem.c
347
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_sem.c
373
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_sem.c
379
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_setschedparam.c
47
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_setschedparam.c
50
if (pthread == curthread) {
lib/libthread_xu/thread/thr_setschedparam.c
51
THR_LOCK(curthread);
lib/libthread_xu/thread/thr_setschedparam.c
52
if (curthread->attr.sched_policy == policy &&
lib/libthread_xu/thread/thr_setschedparam.c
53
curthread->attr.prio == param->sched_priority) {
lib/libthread_xu/thread/thr_setschedparam.c
54
THR_UNLOCK(curthread);
lib/libthread_xu/thread/thr_setschedparam.c
58
ret = _thr_set_sched_other_prio(curthread,
lib/libthread_xu/thread/thr_setschedparam.c
61
ret = _thr_setscheduler(curthread->tid, policy, param);
lib/libthread_xu/thread/thr_setschedparam.c
66
curthread->attr.sched_policy = policy;
lib/libthread_xu/thread/thr_setschedparam.c
67
curthread->attr.prio = param->sched_priority;
lib/libthread_xu/thread/thr_setschedparam.c
69
THR_UNLOCK(curthread);
lib/libthread_xu/thread/thr_setschedparam.c
70
} else if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0))
lib/libthread_xu/thread/thr_setschedparam.c
72
THR_THREAD_LOCK(curthread, pthread);
lib/libthread_xu/thread/thr_setschedparam.c
75
THR_THREAD_UNLOCK(curthread, pthread);
lib/libthread_xu/thread/thr_setschedparam.c
90
THR_THREAD_UNLOCK(curthread, pthread);
lib/libthread_xu/thread/thr_setschedparam.c
91
_thr_ref_delete(curthread, pthread);
lib/libthread_xu/thread/thr_sig.c
100
curthread->cycle++;
lib/libthread_xu/thread/thr_sig.c
101
cycle = curthread->cycle;
lib/libthread_xu/thread/thr_sig.c
104
_thr_umtx_wake(&curthread->cycle, 0);
lib/libthread_xu/thread/thr_sig.c
110
if (curthread->state == PS_DEAD)
lib/libthread_xu/thread/thr_sig.c
112
curthread->flags |= THR_FLAGS_SUSPENDED;
lib/libthread_xu/thread/thr_sig.c
113
THR_UMTX_UNLOCK(curthread, &(curthread)->lock);
lib/libthread_xu/thread/thr_sig.c
114
_thr_umtx_wait(&curthread->cycle, cycle, NULL, 0);
lib/libthread_xu/thread/thr_sig.c
115
THR_UMTX_LOCK(curthread, &(curthread)->lock);
lib/libthread_xu/thread/thr_sig.c
116
curthread->flags &= ~THR_FLAGS_SUSPENDED;
lib/libthread_xu/thread/thr_sig.c
118
THR_UMTX_UNLOCK(curthread, &(curthread)->lock);
lib/libthread_xu/thread/thr_sig.c
119
curthread->critical_count--;
lib/libthread_xu/thread/thr_sig.c
121
_thr_signal_unblock(curthread);
lib/libthread_xu/thread/thr_sig.c
198
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_sig.c
211
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_sig.c
213
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_sig.c
224
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_sig.c
236
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_sig.c
238
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_sig.c
247
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_sig.c
260
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_sig.c
262
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_sig.c
294
pthread_t curthread;
lib/libthread_xu/thread/thr_sig.c
299
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_sig.c
300
if (curthread) {
lib/libthread_xu/thread/thr_sig.c
303
curthread->tid);
lib/libthread_xu/thread/thr_sig.c
63
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_sig.c
65
if (curthread->cancelflags & THR_CANCEL_AT_POINT)
lib/libthread_xu/thread/thr_sig.c
67
_thr_ast(curthread);
lib/libthread_xu/thread/thr_sig.c
71
_thr_ast(pthread_t curthread)
lib/libthread_xu/thread/thr_sig.c
73
if (!THR_IN_CRITICAL(curthread)) {
lib/libthread_xu/thread/thr_sig.c
74
if (__predict_false((curthread->flags &
lib/libthread_xu/thread/thr_sig.c
77
_thr_suspend_check(curthread);
lib/libthread_xu/thread/thr_sig.c
82
_thr_suspend_check(pthread_t curthread)
lib/libthread_xu/thread/thr_sig.c
89
_thr_signal_block(curthread);
lib/libthread_xu/thread/thr_sig.c
96
curthread->critical_count++;
lib/libthread_xu/thread/thr_sig.c
97
THR_UMTX_LOCK(curthread, &(curthread)->lock);
lib/libthread_xu/thread/thr_sig.c
98
while ((curthread->flags & (THR_FLAGS_NEED_SUSPEND |
lib/libthread_xu/thread/thr_spec.c
102
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_spec.c
108
if (curthread->specific == NULL)
lib/libthread_xu/thread/thr_spec.c
112
THR_LOCK_ACQUIRE(curthread, &_keytable_lock);
lib/libthread_xu/thread/thr_spec.c
114
(curthread->specific_data_count > 0); i++) {
lib/libthread_xu/thread/thr_spec.c
116
(curthread->specific_data_count > 0); key++) {
lib/libthread_xu/thread/thr_spec.c
120
(curthread->specific[key].data != NULL)) {
lib/libthread_xu/thread/thr_spec.c
121
if (curthread->specific[key].seqno ==
lib/libthread_xu/thread/thr_spec.c
123
data = curthread->specific[key].data;
lib/libthread_xu/thread/thr_spec.c
126
curthread->specific[key].data = NULL;
lib/libthread_xu/thread/thr_spec.c
127
curthread->specific_data_count--;
lib/libthread_xu/thread/thr_spec.c
128
} else if (curthread->specific[key].data != NULL) {
lib/libthread_xu/thread/thr_spec.c
135
curthread->specific[key].data = NULL;
lib/libthread_xu/thread/thr_spec.c
136
curthread->specific_data_count--;
lib/libthread_xu/thread/thr_spec.c
148
THR_LOCK_RELEASE(curthread, &_keytable_lock);
lib/libthread_xu/thread/thr_spec.c
150
THR_LOCK_ACQUIRE(curthread, &_keytable_lock);
lib/libthread_xu/thread/thr_spec.c
154
THR_LOCK_RELEASE(curthread, &_keytable_lock);
lib/libthread_xu/thread/thr_spec.c
156
munmap(curthread->specific, _pthread_specific_bytes);
lib/libthread_xu/thread/thr_spec.c
157
curthread->specific = NULL;
lib/libthread_xu/thread/thr_spec.c
159
if (curthread->specific_data_count > 0) {
lib/libthread_xu/thread/thr_spec.c
163
curthread, PTHREAD_DESTRUCTOR_ITERATIONS);
lib/libthread_xu/thread/thr_spec.c
49
pthread_t curthread;
lib/libthread_xu/thread/thr_spec.c
55
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_spec.c
58
THR_LOCK_ACQUIRE(curthread, &_keytable_lock);
lib/libthread_xu/thread/thr_spec.c
66
THR_LOCK_RELEASE(curthread, &_keytable_lock);
lib/libthread_xu/thread/thr_spec.c
73
THR_LOCK_RELEASE(curthread, &_keytable_lock);
lib/libthread_xu/thread/thr_spec.c
80
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_spec.c
85
THR_LOCK_ACQUIRE(curthread, &_keytable_lock);
lib/libthread_xu/thread/thr_spec.c
93
THR_LOCK_RELEASE(curthread, &_keytable_lock);
lib/libthread_xu/thread/thr_spinlock.c
101
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_spinlock.c
102
return(THR_UMTX_TRYLOCK(curthread,
lib/libthread_xu/thread/thr_spinlock.c
116
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_spinlock.c
118
THR_UMTX_LOCK(curthread, &spinlock_static_lock);
lib/libthread_xu/thread/thr_spinlock.c
124
THR_UMTX_UNLOCK(curthread, &spinlock_static_lock);
lib/libthread_xu/thread/thr_spinlock.c
65
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_spinlock.c
67
THR_UMTX_UNLOCK(curthread, (volatile umtx_t *)&lck->access_lock);
lib/libthread_xu/thread/thr_spinlock.c
73
pthread_t curthread;
lib/libthread_xu/thread/thr_spinlock.c
82
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_spinlock.c
83
THR_UMTX_LOCK(curthread, (volatile umtx_t *)&lck->access_lock);
lib/libthread_xu/thread/thr_spinlock.c
92
pthread_t curthread;
lib/libthread_xu/thread/thr_stack.c
110
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_stack.c
140
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_stack.c
167
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_stack.c
87
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_suspend_np.c
100
_thr_ref_delete_unlocked(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
108
THR_THREAD_UNLOCK(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
112
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_suspend_np.c
116
suspend_common(pthread_t curthread, pthread_t thread, int waitok)
lib/libthread_xu/thread/thr_suspend_np.c
125
THR_THREAD_UNLOCK(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
128
THR_THREAD_LOCK(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
130
THR_THREAD_LOCK(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
45
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_suspend_np.c
49
if (thread == curthread)
lib/libthread_xu/thread/thr_suspend_np.c
53
else if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0))
lib/libthread_xu/thread/thr_suspend_np.c
56
THR_THREAD_LOCK(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
57
suspend_common(curthread, thread, 1);
lib/libthread_xu/thread/thr_suspend_np.c
59
THR_THREAD_UNLOCK(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
62
_thr_ref_delete(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
70
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_suspend_np.c
74
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_suspend_np.c
77
if (thread != curthread) {
lib/libthread_xu/thread/thr_suspend_np.c
78
THR_THREAD_LOCK(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
82
THR_THREAD_UNLOCK(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
89
if (thread != curthread) {
lib/libthread_xu/thread/thr_suspend_np.c
91
THR_THREAD_LOCK(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
92
ret = suspend_common(curthread, thread, 0);
lib/libthread_xu/thread/thr_suspend_np.c
96
THREAD_LIST_UNLOCK(curthread);
lib/libthread_xu/thread/thr_suspend_np.c
97
suspend_common(curthread, thread, 1);
lib/libthread_xu/thread/thr_suspend_np.c
98
THR_THREAD_UNLOCK(curthread, thread);
lib/libthread_xu/thread/thr_suspend_np.c
99
THREAD_LIST_LOCK(curthread);
lib/libthread_xu/thread/thr_syscalls.c
169
pthread_t curthread;
lib/libthread_xu/thread/thr_syscalls.c
173
curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
174
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
176
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
187
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
191
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
193
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
203
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
207
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
209
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
219
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
223
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
225
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
235
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
239
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
241
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
251
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
256
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
276
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
286
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
290
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
292
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
302
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
306
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
308
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
318
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
322
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
324
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
335
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
339
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
341
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
352
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
356
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
359
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
369
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
375
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
387
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
397
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
403
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
415
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
425
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
429
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
431
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
441
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
445
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
447
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
458
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
462
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
464
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
475
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
479
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
481
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
505
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
509
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
511
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
520
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
524
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
526
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
536
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
540
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
542
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
551
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
555
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
557
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
567
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
571
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
573
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
582
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
586
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
588
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
598
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
602
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
604
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
613
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
617
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
619
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
628
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
632
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
634
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
643
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
647
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
649
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
658
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
662
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
664
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
687
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
691
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
693
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
702
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
706
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
708
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
717
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
721
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
723
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
732
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
736
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
738
_thr_cancel_leave(curthread, oldcancel);
lib/libthread_xu/thread/thr_syscalls.c
747
pthread_t curthread = tls_get_curthread();
lib/libthread_xu/thread/thr_syscalls.c
751
oldcancel = _thr_cancel_enter(curthread);
lib/libthread_xu/thread/thr_syscalls.c
753
_thr_cancel_leave(curthread, oldcancel);
sys/bus/cam/cam_sim.c
78
} else if (lockstatus(lock, curthread) != LK_EXCLUSIVE) {
sys/bus/u4b/controller/xhci.h
559
#define XHCI_CMD_ASSERT_LOCKED(sc) KKASSERT(lockstatus(&(sc)->sc_cmd_lock, curthread) == LK_EXCLUSIVE)
sys/bus/u4b/input/ukbd.c
2031
sc->sc_poll_thread = curthread;
sys/bus/u4b/serial/usb_serial.c
1226
(sc, cmd, data, 0, curthread);
sys/bus/u4b/usb_dev.c
1076
struct thread *td = curthread;
sys/bus/u4b/usb_dev.c
1692
struct thread *td = curthread; /* XXX: curthread the correct choice? */
sys/bus/u4b/usb_device.c
2865
if (lockstatus(&udev->enum_lock, curthread)==LK_EXCLUSIVE)
sys/bus/u4b/usb_device.c
2916
if (lockstatus(&udev->ctrl_lock, curthread)==LK_EXCLUSIVE)
sys/bus/u4b/usb_process.c
375
if (up->up_curtd == curthread) {
sys/bus/u4b/usb_process.c
489
return (up->up_curtd == curthread);
sys/bus/u4b/usb_process.c
92
td = curthread;
sys/bus/u4b/uvc/uvc_buf.c
735
td = curthread;
sys/bus/u4b/uvc/uvc_drv.c
1175
suspend_kproc(curthread, 300);
sys/bus/u4b/uvc/uvc_drv.c
439
DPRINTF("set video %p\n", curthread);
sys/bus/u4b/uvc/uvc_v4l2.c
382
curthread->td_proc->p_comm, curthread->td_proc->p_pptr->p_comm,
sys/bus/u4b/uvc/uvc_v4l2.c
383
curthread->td_proc->p_pid, curthread->td_proc->p_pptr->p_pid,
sys/bus/u4b/uvc/uvc_v4l2.c
386
DPRINTF("====%s====%d %d %s\n", __func__, curthread->td_proc->p_pid,
sys/bus/u4b/uvc/uvc_v4l2.c
387
curthread->td_proc->p_pptr->p_pid,
sys/bus/u4b/uvc/uvc_v4l2.c
388
curthread->td_proc->p_pptr->p_comm);
sys/bus/u4b/uvc/uvc_v4l2.c
422
curthread->td_proc->p_comm, curthread->td_proc->p_pptr->p_comm,
sys/bus/u4b/uvc/uvc_v4l2.c
423
curthread->td_proc->p_pid, curthread->td_proc->p_pptr->p_pid,
sys/bus/u4b/uvc/uvc_v4l2.c
78
curthread->td_proc->p_comm, curthread->td_proc->p_pptr->p_comm,
sys/bus/u4b/uvc/uvc_v4l2.c
79
curthread->td_proc->p_pid, curthread->td_proc->p_pptr->p_pid,
sys/bus/u4b/wlan/if_mtw.c
4718
usb_pause_mtx(lockstatus(&sc->sc_lock, curthread) == LK_EXCLUSIVE ? &sc->sc_lock : NULL,
sys/bus/u4b/wlan/if_mtwvar.h
390
#define MTW_LOCK_ASSERT(sc) KKASSERT(lockstatus(&(sc)->sc_lock, curthread) == LK_EXCLUSIVE)
sys/bus/u4b/wlan/if_rumvar.h
180
#define RUM_LOCK_ASSERT(sc) KKASSERT(lockstatus(&(sc)->sc_lock, curthread) == LK_EXCLUSIVE)
sys/bus/u4b/wlan/if_urtwnvar.h
244
#define URTWN_ASSERT_LOCKED(sc) KKASSERT(lockstatus(&(sc)->sc_mtx, curthread) == LK_EXCLUSIVE)
sys/ddb/db_ps.c
179
curthread,
sys/ddb/db_ps.c
180
(curthread->td_proc ? curthread->td_proc->p_pid : -1));
sys/ddb/db_ps.c
181
db_dump_td_tokens(curthread);
sys/dev/acpica/Osd/OsdSchedule.c
105
at = (void *)lwkt_waitport(&curthread->td_msgport, 0);
sys/dev/acpica/Osd/OsdSchedule.c
211
return ((uintptr_t)curthread);
sys/dev/acpica/Osd/OsdSynch.c
393
curthread, func, line, Spin, Spin->owner, Spin->func,
sys/dev/acpica/Osd/OsdSynch.c
397
Spin->owner = curthread;
sys/dev/acpica/Osd/OsdSynch.c
412
curthread, Spin, Spin->owner, Spin->func, Spin->line);
sys/dev/acpica/acpi_cpu_cstate.c
1182
cpuhelper_initmsg(&msg, &curthread->td_msgport,
sys/dev/acpica/acpi_cpu_cstate.c
704
cpuhelper_initmsg(&msg, &curthread->td_msgport,
sys/dev/acpica/acpi_cpu_cstate.c
819
cpuhelper_initmsg(&msg, &curthread->td_msgport,
sys/dev/acpica/acpi_cpu_pstate.c
1384
cpuhelper_initmsg(&msg.ch_msg, &curthread->td_msgport,
sys/dev/acpica/acpi_cpu_pstate.c
1409
cpuhelper_initmsg(&msg, &curthread->td_msgport,
sys/dev/acpica/acpi_cpu_pstate.c
1432
cpuhelper_initmsg(&msg.ch_msg, &curthread->td_msgport,
sys/dev/acpica/acpi_cpu_pstate.c
1458
cpuhelper_initmsg(&msg.ch_msg, &curthread->td_msgport,
sys/dev/acpica/acpi_cpu_pstate.c
1487
cpuhelper_initmsg(&msg.ch_msg, &curthread->td_msgport,
sys/dev/acpica/acpi_hp/acpi_hp.c
1081
struct thread *td = curthread;
sys/dev/acpica/acpi_wmi/acpi_wmi.c
880
struct thread *td = curthread;
sys/dev/acpica/acpivar.h
164
#define ACPI_LOCK_ASSERT(sys) KKASSERT(lockstatus(&sys##_lock, curthread) == LK_EXCLUSIVE)
sys/dev/acpica/acpivar.h
172
#define ACPI_SERIAL_ASSERT(sys) KKASSERT(lockstatus(&sys##_serial, curthread) == LK_EXCLUSIVE)
sys/dev/crypto/tpm/tpm_crb.c
315
KKASSERT(lockstatus(&sc->dev_lock, curthread) == LK_EXCLUSIVE);
sys/dev/crypto/tpm/tpm_tis.c
405
KKASSERT(lockstatus(&sc->dev_lock, curthread) == LK_EXCLUSIVE);
sys/dev/disk/dm/dm_dev.c
68
KKASSERT(lockstatus(&dm_dev_mutex, curthread) == LK_EXCLUSIVE);
sys/dev/disk/iscsi/initiator/isc_soc.c
187
if((error = sosend(sp->soc, NULL, NULL, mh, 0, 0, curthread)) != 0) {
sys/dev/disk/iscsi/initiator/isc_soc.c
209
uio->uio_td = curthread;
sys/dev/disk/iscsi/initiator/isc_soc.c
253
error = sosend(sp->soc, NULL, uio, 0, 0, 0, curthread);
sys/dev/disk/iscsi/initiator/isc_soc.c
338
uio->uio_td = curthread; // why ...
sys/dev/disk/iscsi/initiator/isc_soc.c
432
uio->uio_td = curthread; // why ...
sys/dev/disk/iscsi/initiator/isc_soc.c
577
sp->td = curthread;
sys/dev/disk/iscsi/initiator/iscsi.c
226
error = i_setsoc(sp, *(u_int *)arg, curthread);
sys/dev/disk/iscsi/initiator/iscsi.c
235
error = i_send(dev, arg, curthread);
sys/dev/disk/iscsi/initiator/iscsi.c
239
error = i_recv(dev, arg, curthread);
sys/dev/disk/iscsi/initiator/iscsi.c
249
sp->proc = curthread->td_proc;
sys/dev/disk/mpt/mpt.h
765
#define MPT_OWNED(mpt) lockstatus(&(mpt)->mpt_lock, curthread)
sys/dev/disk/sym/sym_hipd.c
1026
#define SYM_LOCK_ASSERT(_what) KKASSERT(lockstatus(&np->lock, curthread) == (_what))
sys/dev/disk/vn/vn.c
334
auio.uio_td = curthread;
sys/dev/disk/xdisk/xdisk.c
297
fp = holdfp(curthread, xaioc->fd, -1);
sys/dev/drm/drm_gem.c
1101
DRM_GEM_MAPPING_MAPOFF(*offset), curthread->td_ucred);
sys/dev/drm/include/asm/current.h
43
if ((__task = curthread->td_linux_task) == NULL) \
sys/dev/drm/include/asm/current.h
44
__task = linux_task_alloc(curthread); \
sys/dev/drm/include/drm/drmP.h
112
#define DRM_CURPROC curthread
sys/dev/drm/include/linux/file.h
46
error = falloc(curthread->td_lwp, &file, &fd);
sys/dev/drm/include/linux/irqflags.h
55
return IN_CRITICAL_SECT(curthread);
sys/dev/drm/include/linux/preempt.h
37
#define in_atomic() (curthread->td_flags & TDF_NOFAULT)
sys/dev/drm/include/linux/preempt.h
39
#define in_task() (curthread->td_pri >= TDPRI_SOFT_NORM)
sys/dev/drm/include/linux/sched.h
322
return (curthread->td_flags & TDF_NOFAULT);
sys/dev/drm/include/linux/sched/task.h
42
linux_task_drop(curthread);
sys/dev/drm/include/linux/uaccess.h
34
atomic_set_int(&curthread->td_flags, TDF_NOFAULT);
sys/dev/drm/include/linux/uaccess.h
39
atomic_clear_int(&curthread->td_flags, TDF_NOFAULT);
sys/dev/drm/linux_dma-buf.c
123
falloc(curthread->td_lwp, &fp, NULL);
sys/dev/drm/linux_dma-buf.c
174
if ((fp = holdfp(curthread, fd, -1)) == NULL)
sys/dev/drm/linux_dma-buf.c
179
dropfp(curthread, fd, fp);
sys/dev/drm/linux_dma-buf.c
184
dropfp(curthread, fd, fp);
sys/dev/drm/linux_kthread.c
132
lwkt_deschedule_self(curthread);
sys/dev/drm/linux_shmem.c
135
td = curthread;
sys/dev/drm/ttm/ttm_bo_vm.c
804
curthread->td_ucred);
sys/dev/misc/cmx/cmx.c
434
MODEBITS, ap->a_oflags, curthread);
sys/dev/misc/cmx/cmx.c
468
MODEBITS, ap->a_fflag, curthread);
sys/dev/misc/cuse/cuse.c
1148
pccmd->entered = curthread;
sys/dev/misc/cuse/cuse.c
1159
while ((pccmd = cuse_server_find_command(pcs, curthread)) != NULL) {
sys/dev/misc/cuse/cuse.c
1250
pccmd = cuse_server_find_command(pcs, curthread);
sys/dev/misc/cuse/cuse.c
1267
pccmd = cuse_server_find_command(pcs, curthread);
sys/dev/misc/cuse/cuse.c
1358
pccmd = cuse_server_find_command(pcs, curthread);
sys/dev/misc/cuse/cuse.c
273
return (lockstatus((&pcs->mtx), curthread));
sys/dev/misc/cuse/cuse.c
616
pccmd->proc_curr = curthread->td_proc;
sys/dev/misc/cuse/cuse.c
903
td = curthread;
sys/dev/misc/cuse/cuse.c
970
curthread->td_proc, pchk->local_ptr,
sys/dev/misc/cuse/cuse.c
976
curthread->td_proc, pchk->local_ptr,
sys/dev/misc/gpio/gpio.c
107
if ((lockstatus(&gpio_lock, curthread)) != LK_EXCLUSIVE) {
sys/dev/misc/gpio/gpio.c
149
if ((lockstatus(&gpio_lock, curthread)) != LK_EXCLUSIVE) {
sys/dev/misc/gpio/gpio.c
196
if ((lockstatus(&gpio_lock, curthread)) != LK_EXCLUSIVE) {
sys/dev/misc/gpio/gpio.c
243
if ((lockstatus(&gpio_lock, curthread)) != LK_EXCLUSIVE) {
sys/dev/misc/kbd/kbdreg.h
152
lockstatus(&(k)->kb_lock, curthread) == LK_EXCLUSIVE)
sys/dev/misc/syscons/syscons.c
1394
curthread->td_lwp->lwp_md.md_regs->tf_rflags |= PSL_IOPL;
sys/dev/misc/syscons/syscons.c
1401
curthread->td_lwp->lwp_md.md_regs->tf_rflags &= ~PSL_IOPL;
sys/dev/netif/ath/ath/if_ath_alq.c
121
curthread->td_ucred, ALQ_DEFAULT_CMODE,
sys/dev/netif/ath/ath/if_ath_alq.c
185
ap->threadid = htobe64((uint64_t) curthread->td_tid);
sys/dev/netif/ath/ath/if_athvar.h
1006
#define ATH_PCU_LOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_pcu_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
1007
#define ATH_PCU_UNLOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_pcu_mtx, curthread) != LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
1026
#define ATH_RX_LOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_rx_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
1027
#define ATH_RX_UNLOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_rx_mtx, curthread) != LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
1040
KKASSERT(lockstatus(&(_sc)->sc_txbuflock, curthread) == LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
1042
KKASSERT(lockstatus(&(_sc)->sc_txbuflock, curthread) != LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
1055
KKASSERT(lockstatus(&(_sc)->sc_txcomplock, curthread) == LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
420
#define ATH_TXQ_LOCK_ASSERT(_tq) KKASSERT(lockstatus(&(_tq)->axq_lock, curthread) == LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
421
#define ATH_TXQ_UNLOCK_ASSERT(_tq) KKASSERT(lockstatus(&(_tq)->axq_lock, curthread) != LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
426
#define ATH_NODE_LOCK_ASSERT(_an) KKASSERT(lockstatus(&(_an)->an_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
427
#define ATH_NODE_UNLOCK_ASSERT(_an) KKASSERT(lockstatus(&(_an)->an_mtx, curthread) != LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
957
#define ATH_LOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
958
#define ATH_UNLOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_mtx, curthread) != LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
975
#define ATH_TX_LOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_tx_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/netif/ath/ath/if_athvar.h
976
#define ATH_TX_UNLOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_tx_mtx, curthread) != LK_EXCLUSIVE)
sys/dev/netif/ath/ath_hal/ah_osdep.c
223
curthread->td_ucred, ALQ_DEFAULT_CMODE,
sys/dev/netif/ath/ath_hal/ah_osdep.c
301
r->threadid = curthread->td_tid;
sys/dev/netif/ath/ath_hal/ah_osdep.c
340
r->threadid = curthread->td_tid;
sys/dev/netif/ath/ath_hal/ah_osdep.c
357
r->threadid = curthread->td_tid;
sys/dev/netif/bwn/bwn/if_bwnvar.h
1035
#define BWN_ASSERT_LOCKED(sc) KKASSERT(lockstatus(&(sc)->sc_lk, curthread) == LK_EXCLUSIVE)
sys/dev/netif/iwi/if_iwivar.h
262
#define IWI_LOCK_ASSERT(sc) KKASSERT(lockstatus(&(sc)->sc_lock, curthread) == LK_EXCLUSIVE)
sys/dev/netif/iwi/if_iwivar.h
264
if (!(__waslocked = (lockstatus(&(sc)->sc_lock, curthread) == LK_EXCLUSIVE))) \
sys/dev/netif/iwn/if_iwn.c
5146
struct thread *td = curthread;
sys/dev/netif/iwn/if_iwnvar.h
438
#define IWN_LOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_lk, curthread) == LK_EXCLUSIVE);
sys/dev/netif/ral/rt2560var.h
169
#define RAL_LOCK_ASSERT(sc) KKASSERT(lockstatus(&(sc)->sc_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/netif/ral/rt2661var.h
177
#define RAL_LOCK_ASSERT(sc) KKASSERT(lockstatus(&(sc)->sc_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/netif/ral/rt2860var.h
214
#define RAL_LOCK_ASSERT(sc) KKASSERT(lockstatus(&(sc)->sc_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/netif/wi/if_wivar.h
181
#define WI_LOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_lk, curthread) == LK_EXCLUSIVE)
sys/dev/netif/wpi/if_wpivar.h
150
#define WPI_VAP_LOCK_ASSERT(_wvp) KKASSERT(lockstatus(&(_wvp)->wv_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/netif/wpi/if_wpivar.h
285
#define WPI_LOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/netif/wpi/if_wpivar.h
292
#define WPI_RXON_LOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->rxon_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/powermng/clockmod/clockmod.c
482
cpuhelper_initmsg(&msg, &curthread->td_msgport,
sys/dev/powermng/perfbias/perfbias.c
191
cpuhelper_initmsg(&msg, &curthread->td_msgport,
sys/dev/raid/arcmsr/arcmsr.c
1426
mutex = lockstatus(&acb->isr_lock, curthread);
sys/dev/raid/hptrr/os_bsd.h
189
#define hpt_assert_vbus_locked(vbus_ext) KKASSERT(lockstatus(&(vbus_ext)->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/clone.c
639
curpid = curthread->td_proc->p_pid;
sys/dev/sound/pci/emu10kx.c
436
(uintptr_t)curthread); \
sys/dev/sound/pci/hda/hdac.c
56
#define hdac_lockowned(sc) (lockstatus((sc)->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/channel.h
312
#define CHN_LOCKOWNED(c) (lockstatus((c)->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/channel.h
316
#define CHN_LOCKASSERT(c) KKASSERT(lockstatus((c)->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/channel.h
317
#define CHN_UNLOCKASSERT(c) KKASSERT(lockstatus((c)->lock, curthread) != LK_EXCLUSIVE)
sys/dev/sound/pcm/channel.h
59
#define PCM_SG_ASSERTOWNED KKASSERT(lockstatus(&snd_pcm_syncgroups_mtx, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/channel.h
60
#define PCM_SG_ASSERTNOTOWNED KKASSERT(lockstatus(&snd_pcm_syncgroups_mtx, curthread) != LK_EXCLUSIVE)
sys/dev/sound/pcm/dsp.c
2263
struct thread *td = curthread;
sys/dev/sound/pcm/dsp.c
2277
struct thread *td = curthread;
sys/dev/sound/pcm/mixer.c
159
if (lockstatus(m->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/mixer.c
164
if (!(d->flags & SD_F_MPSAFE) || lockstatus(d->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/mixer.c
212
if (lockstatus(m->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/mixer.c
217
if (!(d->flags & SD_F_MPSAFE) || lockstatus(d->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/mixer.c
268
if (!(d->flags & SD_F_MPSAFE) && lockstatus(m->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/mixer.c
350
if (!(d->flags & SD_F_MPSAFE) && lockstatus(mixer->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/sndstat.c
444
if (SNDSTAT_PID(sndstat_dev) != curthread->td_proc->p_pid) {
sys/dev/sound/pcm/sound.c
1152
td = curthread;
sys/dev/sound/pcm/sound.c
116
KKASSERT(lockstatus(lk, curthread) == LK_EXCLUSIVE);
sys/dev/sound/pcm/sound.c
1433
ret = sndstat_acquire(curthread);
sys/dev/sound/pcm/sound.h
430
#define PCM_LOCKOWNED(d) (lockstatus((d)->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/sound.h
434
#define PCM_LOCKASSERT(d) KKASSERT(lockstatus((d)->lock, curthread) == LK_EXCLUSIVE)
sys/dev/sound/pcm/sound.h
435
#define PCM_UNLOCKASSERT(d) KKASSERT(lockstatus((d)->lock, curthread) != LK_EXCLUSIVE)
sys/dev/video/bktr/bktr_os.c
643
return( video_ioctl( bktr, unit, cmd, ap->a_data, curthread ) );
sys/dev/video/bktr/bktr_os.c
645
return( tuner_ioctl( bktr, unit, cmd, ap->a_data, curthread ) );
sys/dev/virtual/amazon/ena/ena-com/ena_plat.h
111
fmt " \n", __func__, curthread, ##args)
sys/dev/virtual/nvmm/nvmm_dragonfly.c
312
owner->pid = curthread->td_proc->p_pid;
sys/dev/virtual/nvmm/nvmm_os.h
124
#define os_rwl_wheld(lock) (lockstatus(lock, curthread) == LK_EXCLUSIVE)
sys/dev/virtual/nvmm/nvmm_os.h
139
#define os_mtx_owned(lock) (lockstatus(lock, curthread) == LK_EXCLUSIVE)
sys/dev/virtual/nvmm/nvmm_os.h
258
#define os_preempt_disabled() (curthread->td_critcount != 0)
sys/dev/virtual/nvmm/nvmm_os.h
311
if (__predict_false(curthread->td_lwp->lwp_mpflags & LWP_MP_URETMASK)) {
sys/dev/virtual/nvmm/x86/nvmm_x86_internal.h
144
struct pcb *pcb = curthread->td_lwp->lwp_thread->td_pcb;
sys/dev/virtual/nvmm/x86/nvmm_x86_internal.h
159
struct pcb *pcb = curthread->td_lwp->lwp_thread->td_pcb;
sys/kern/imgact_elf.c
1561
thread_t td = curthread;
sys/kern/imgact_resident.c
209
struct thread *td = curthread;
sys/kern/imgact_resident.c
259
struct thread *td = curthread;
sys/kern/init_main.c
184
lwkt_schedule_self(curthread);
sys/kern/init_main.c
311
KKASSERT(!IN_CRITICAL_SECT(curthread));
sys/kern/kern_acl.c
109
struct thread *td = curthread;
sys/kern/kern_acl.c
126
struct thread *td = curthread;
sys/kern/kern_acl.c
202
struct thread *td = curthread;
sys/kern/kern_acl.c
221
struct thread *td = curthread;
sys/kern/kern_acl.c
265
struct thread *td = curthread;
sys/kern/kern_acl.c
310
struct thread *td = curthread;
sys/kern/kern_acl.c
69
struct thread *td = curthread;
sys/kern/kern_acl.c
91
struct thread *td = curthread;
sys/kern/kern_caps.c
107
cred = curthread->td_ucred;
sys/kern/kern_caps.c
357
return (caps_priv_check_td(curthread, cap));
sys/kern/kern_checkpoint.c
720
struct thread *td = curthread;
sys/kern/kern_clock.c
1136
if ((lp = curthread->td_lwp) != NULL) {
sys/kern/kern_clock.c
764
curthread->td_wakefromcpu = -1;
sys/kern/kern_clock.c
820
lwkt_schedulerclock(curthread);
sys/kern/kern_clock.c
940
td = curthread;
sys/kern/kern_descrip.c
1043
struct thread *td = curthread;
sys/kern/kern_descrip.c
1363
sigio->sio_ucred = crhold(curthread->td_ucred);
sys/kern/kern_descrip.c
1414
struct thread *td = curthread;
sys/kern/kern_descrip.c
1468
struct thread *td = curthread;
sys/kern/kern_descrip.c
1525
struct thread *td = curthread;
sys/kern/kern_descrip.c
1556
struct thread *td = curthread;
sys/kern/kern_descrip.c
1592
struct thread *td = curthread;
sys/kern/kern_descrip.c
2608
fexitcache(curthread);
sys/kern/kern_descrip.c
3199
thread_t td = curthread;
sys/kern/kern_descrip.c
3259
td = curthread;
sys/kern/kern_descrip.c
621
thread_t td = curthread;
sys/kern/kern_descrip.c
701
struct thread *td = curthread;
sys/kern/kern_descrip.c
945
struct thread *td = curthread;
sys/kern/kern_descrip.c
984
error = kern_fcntl(uap->fd, uap->cmd, &dat, curthread->td_ucred);
sys/kern/kern_event.c
1056
struct thread *td = curthread;
sys/kern/kern_event.c
1168
td = curthread;
sys/kern/kern_event.c
1332
checkfdclosed(curthread, fdp, kev->ident, kn->kn_fp,
sys/kern/kern_event.c
1483
thread_t td = curthread;
sys/kern/kern_event.c
1554
curthread->td_lwp->lwp_kqueue_serial)
sys/kern/kern_event.c
307
if (!PRISON_CHECK(curthread->td_ucred, p->p_ucred)) {
sys/kern/kern_event.c
725
struct thread *td = curthread;
sys/kern/kern_event.c
812
atomic_set_int(&curthread->td_mpflags, TDF_MP_BATCH_DEMARC);
sys/kern/kern_exec.c
205
struct thread *td = curthread;
sys/kern/kern_exec.c
710
struct thread *td = curthread;
sys/kern/kern_exec.c
918
lp = curthread->td_lwp;
sys/kern/kern_exec.c
922
if (curthread->td_proc->p_nthreads > 1) {
sys/kern/kern_exit.c
1003
struct thread *td = curthread;
sys/kern/kern_exit.c
188
struct lwp *lp = curthread->td_lwp;
sys/kern/kern_exit.c
292
struct thread *td = curthread;
sys/kern/kern_exit.c
673
struct thread *td = curthread;
sys/kern/kern_exit.c
757
biosched_done(curthread);
sys/kern/kern_fork.c
141
struct lwp *lp = curthread->td_lwp;
sys/kern/kern_fork.c
162
struct lwp *lp = curthread->td_lwp;
sys/kern/kern_fork.c
191
struct lwp *lp = curthread->td_lwp;
sys/kern/kern_fork.c
238
lp = lwp_fork1(curthread->td_lwp, p, RFPROC | RFMEM, mask);
sys/kern/kern_fork.c
239
lwp_fork2(curthread->td_lwp, p, lp, RFPROC | RFMEM);
sys/kern/kern_fp.c
103
td = curthread;
sys/kern/kern_fp.c
137
td = curthread;
sys/kern/kern_fp.c
225
auio.uio_td = curthread;
sys/kern/kern_fp.c
264
auio.uio_td = curthread;
sys/kern/kern_fp.c
322
auio.uio_td = curthread;
sys/kern/kern_fp.c
361
auio.uio_td = curthread;
sys/kern/kern_fp.c
396
struct thread *td = curthread;
sys/kern/kern_intr.c
725
td = curthread;
sys/kern/kern_iosched.c
135
factor = badjiosched(curthread, (size_t)bytes);
sys/kern/kern_iosched.c
164
factor = badjiosched(curthread, PAGE_SIZE);
sys/kern/kern_jail.c
138
struct proc *p = curthread->td_proc;
sys/kern/kern_jail.c
663
struct thread *td = curthread;
sys/kern/kern_kthread.c
211
struct thread *td = curthread;
sys/kern/kern_ktrace.c
293
struct thread *td = curthread;
sys/kern/kern_ktrace.c
420
if (ktrcanset(curthread, p)) {
sys/kern/kern_ktrace.c
444
struct thread *td = curthread; /* XXX */
sys/kern/kern_ktrace.c
619
auio.uio_td = curthread;
sys/kern/kern_ktrace.c
74
thread_t td = curthread;
sys/kern/kern_lock.c
119
td = curthread;
sys/kern/kern_lock.c
1285
struct thread *td __debugvar = curthread;
sys/kern/kern_lock.c
1367
thread_t td = curthread;
sys/kern/kern_lock.c
296
td = curthread;
sys/kern/kern_lock.c
507
td = curthread;
sys/kern/kern_lock.c
588
td = curthread;
sys/kern/kern_lock.c
751
td = curthread;
sys/kern/kern_memio.c
341
if (CURSIG(curthread->td_lwp) != 0) {
sys/kern/kern_mutex.c
100
mtx->mtx_owner = curthread;
sys/kern/kern_mutex.c
1048
thread_t td = curthread;
sys/kern/kern_mutex.c
108
if ((lock & MTX_EXCLUSIVE) && mtx->mtx_owner == curthread) {
sys/kern/kern_mutex.c
139
td = curthread;
sys/kern/kern_mutex.c
289
td = curthread;
sys/kern/kern_mutex.c
394
mtx->mtx_owner = curthread;
sys/kern/kern_mutex.c
398
mtx->mtx_owner == curthread) {
sys/kern/kern_mutex.c
498
mtx->mtx_owner = curthread;
sys/kern/kern_mutex.c
503
mtx->mtx_owner == curthread) {
sys/kern/kern_mutex.c
610
mtx->mtx_owner = curthread;
sys/kern/kern_mutex.c
614
KKASSERT(mtx->mtx_owner == curthread);
sys/kern/kern_mutex.c
633
thread_t td __debugvar = curthread;
sys/kern/kern_mutex.c
752
thread_t td = curthread;
sys/kern/kern_mutex.c
812
thread_t td = curthread;
sys/kern/kern_mutex.c
886
thread_t td = curthread;
sys/kern/kern_nrandom.c
778
if (CURSIG_NOBLOCK(curthread->td_lwp) != 0) {
sys/kern/kern_plimit.c
95
thread_t td = curthread;
sys/kern/kern_proc.c
1256
struct lwp *lp = curthread->td_lwp;
sys/kern/kern_prot.c
1274
struct thread *td = curthread;
sys/kern/kern_prot.c
167
struct ucred *cred = curthread->td_ucred;
sys/kern/kern_prot.c
179
struct ucred *cred = curthread->td_ucred;
sys/kern/kern_prot.c
191
struct ucred *cred = curthread->td_ucred;
sys/kern/kern_prot.c
205
struct ucred *cred = curthread->td_ucred;
sys/kern/kern_prot.c
218
cr = curthread->td_ucred;
sys/kern/kern_prot.c
83
struct lwp *lp = curthread->td_lwp;
sys/kern/kern_prot.c
897
cr = curthread->td_ucred;
sys/kern/kern_prot.c
916
cr = curthread->td_ucred;
sys/kern/kern_resource.c
165
if (PRISON_CHECK(curthread->td_ucred, p->p_ucred) &&
sys/kern/kern_resource.c
190
thread_t curtd = curthread;
sys/kern/kern_resource.c
278
PRISON_CHECK(curthread->td_ucred, p->p_ucred)) {
sys/kern/kern_resource.c
294
struct ucred *cr = curthread->td_ucred;
sys/kern/kern_resource.c
331
thread_t curtd = curthread;
sys/kern/kern_resource.c
406
if (PRISON_CHECK(curthread->td_ucred, p->p_ucred) &&
sys/kern/kern_resource.c
432
thread_t curtd = curthread;
sys/kern/kern_resource.c
520
PRISON_CHECK(curthread->td_ucred, p->p_ucred)) {
sys/kern/kern_resource.c
533
struct ucred *cr = curthread->td_ucred;
sys/kern/kern_resource.c
560
struct ucred *cr = curthread->td_ucred;
sys/kern/kern_resource.c
593
lp = curthread->td_lwp;
sys/kern/kern_resource.c
680
struct ucred *cr = curthread->td_ucred;
sys/kern/kern_resource.c
88
thread_t curtd = curthread;
sys/kern/kern_resource.c
969
thread_t td = curthread;
sys/kern/kern_sched.c
216
if ((lp = curthread->td_lwp) != NULL)
sys/kern/kern_sensors.c
348
KASSERT(lockstatus(&thr->lock, curthread) == LK_EXCLUSIVE,
sys/kern/kern_shutdown.c
257
if (curthread->td_release)
sys/kern/kern_shutdown.c
258
curthread->td_release(curthread);
sys/kern/kern_shutdown.c
868
dumpthread = curthread;
sys/kern/kern_sig.c
1236
sigsetfrompid(curthread, p, sig);
sys/kern/kern_sig.c
1365
sigsetfrompid(curthread, p, sig);
sys/kern/kern_sig.c
1396
sigsetfrompid(curthread, p, sig);
sys/kern/kern_sig.c
1425
sigsetfrompid(curthread, p, sig);
sys/kern/kern_sig.c
1740
struct lwp *lp = curthread->td_lwp;
sys/kern/kern_sig.c
2256
struct lwp *lp = curthread->td_lwp;
sys/kern/kern_sig.c
250
struct thread *td = curthread;
sys/kern/kern_sig.c
2630
lwpsignal(curproc, curthread->td_lwp, SIGSYS);
sys/kern/kern_sig.c
477
struct thread *td = curthread;
sys/kern/kern_sig.c
545
struct lwp *lp = curthread->td_lwp;
sys/kern/kern_sig.c
577
struct thread *td = curthread;
sys/kern/kern_sig.c
634
struct thread *td = curthread;
sys/kern/kern_slaballoc.c
1746
td = curthread;
sys/kern/kern_subr.c
209
thread_t td = curthread;
sys/kern/kern_subr.c
230
KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread,
sys/kern/kern_subr.c
544
struct thread *td = curthread;
sys/kern/kern_subr.c
555
KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread,
sys/kern/kern_subr.c
63
thread_t td = curthread;
sys/kern/kern_subr.c
75
thread_t td = curthread;
sys/kern/kern_subr.c
98
thread_t td = curthread;
sys/kern/kern_synch.c
1341
struct lwp *lp = curthread->td_lwp;
sys/kern/kern_synch.c
514
struct thread *td = curthread;
sys/kern/kern_synch.c
900
thread_t td = curthread;
sys/kern/kern_sysctl.c
1252
req.td = curthread;
sys/kern/kern_sysctl.c
1523
struct thread *td = curthread;
sys/kern/kern_time.c
242
get_thread_cputime(curthread, ats);
sys/kern/kern_time.c
514
td = curthread;
sys/kern/kern_timeout.c
184
if ((c->flags & CALLOUT_INPROG) && curthread != &c->qsc->thread) {
sys/kern/kern_timeout.c
208
curthread != &c->qsc->thread) {
sys/kern/kern_timeout.c
916
curthread == &c->qsc->thread) {
sys/kern/kern_umtx.c
124
td = curthread;
sys/kern/kern_umtx.c
261
td = curthread;
sys/kern/kern_usched.c
186
struct proc *p = curthread->td_proc;
sys/kern/kern_usched.c
194
if (uap->pid != 0 && uap->pid != curthread->td_proc->p_pid)
sys/kern/kern_usched.c
197
lp = curthread->td_lwp;
sys/kern/kern_usched.c
309
lp = curthread->td_lwp;
sys/kern/kern_usched.c
481
if (lp == curthread->td_lwp) {
sys/kern/kern_varsym.c
140
td = curthread;
sys/kern/kern_varsym.c
248
td = curthread;
sys/kern/kern_varsym.c
386
td = curthread;
sys/kern/kern_varsym.c
433
td = curthread;
sys/kern/link_elf.c
391
struct thread *td = curthread; /* XXX */
sys/kern/link_elf_obj.c
393
struct thread *td = curthread; /* XXX */
sys/kern/lwkt_ipiq.c
203
KKASSERT(curthread->td_critcount);
sys/kern/lwkt_ipiq.c
722
KKASSERT(curthread->td_critcount);
sys/kern/lwkt_msgport.c
1064
KASSERT(port->mpu_td == curthread,
sys/kern/lwkt_msgport.c
656
KASSERT(port->mpu_td == curthread,
sys/kern/lwkt_msgport.c
752
KKASSERT(port->mpu_td == curthread);
sys/kern/lwkt_msgport.c
772
thread_t td = curthread;
sys/kern/lwkt_msgport.c
810
thread_t td __debugvar = curthread;
sys/kern/lwkt_msgport.c
830
thread_t td = curthread;
sys/kern/lwkt_serialize.c
112
s->last_td = curthread;
sys/kern/lwkt_serialize.c
127
s->last_td = curthread;
sys/kern/lwkt_serialize.c
173
s->last_td = curthread;
sys/kern/lwkt_serialize.c
200
s->last_td = curthread;
sys/kern/lwkt_serialize.c
248
s->last_td = curthread;
sys/kern/lwkt_serialize.c
265
s->last_td = curthread;
sys/kern/lwkt_serialize.c
276
s->last_td = curthread;
sys/kern/lwkt_thread.c
1111
thread_t td = curthread;
sys/kern/lwkt_thread.c
1198
lwkt_schedule_self(curthread);
sys/kern/lwkt_thread.c
1338
thread_t td = curthread;
sys/kern/lwkt_thread.c
1433
if (td == curthread) {
sys/kern/lwkt_thread.c
1488
thread_t td = curthread;
sys/kern/lwkt_thread.c
1565
thread_t td = curthread;
sys/kern/lwkt_thread.c
1634
thread_t td = curthread;
sys/kern/lwkt_thread.c
1686
thread_t td = curthread;
sys/kern/lwkt_thread.c
1774
thread_t td = curthread;
sys/kern/lwkt_token.c
119
KTR_LOG(tokens_ ## name, ref, ref->tr_tok, curthread)
sys/kern/lwkt_token.c
657
thread_t td = curthread;
sys/kern/lwkt_token.c
728
thread_t td = curthread;
sys/kern/lwkt_token.c
794
thread_t td = curthread;
sys/kern/lwkt_token.c
834
thread_t td = curthread;
sys/kern/lwkt_token.c
948
thread_t td = curthread;
sys/kern/subr_cpuhelper.c
117
KASSERT(&curthread->td_msgport == cpuhelper_port(cpuid),
sys/kern/subr_cpuhelper.c
120
KASSERT(&curthread->td_msgport != cpuhelper_port(cpuid),
sys/kern/subr_cpuhelper.c
63
if ((lmsg->ms_flags & MSGF_SYNC) && port == &curthread->td_msgport) {
sys/kern/subr_cpuhelper.c
77
while ((msg = lwkt_waitport(&curthread->td_msgport, 0))) {
sys/kern/subr_disk.c
508
lwkt_initport_thread(&disk_msg_port, curthread);
sys/kern/subr_disk.c
509
wakeup(curthread); /* synchronous startup */
sys/kern/subr_disk.c
642
lwkt_initport_thread(&rep_port, curthread);
sys/kern/subr_diskiocom.c
118
fp = holdfp(curthread, recl->fd, -1);
sys/kern/subr_firmware.c
256
struct thread *td = curthread;
sys/kern/subr_firmware.c
381
struct thread *td = curthread;
sys/kern/subr_sleepqueue.c
273
td = curthread;
sys/kern/subr_sleepqueue.c
297
td = curthread;
sys/kern/subr_sleepqueue.c
393
td = curthread;
sys/kern/subr_sleepqueue.c
410
td = curthread;
sys/kern/subr_sleepqueue.c
429
td = curthread;
sys/kern/subr_sleepqueue.c
448
td = curthread;
sys/kern/sys_generic.c
1164
kap->lwp = curthread->td_lwp;
sys/kern/sys_generic.c
125
struct thread *td = curthread;
sys/kern/sys_generic.c
1262
struct thread *td = curthread;
sys/kern/sys_generic.c
155
struct thread *td = curthread;
sys/kern/sys_generic.c
1643
ka.lwp = curthread->td_lwp;
sys/kern/sys_generic.c
1692
struct thread *td = curthread;
sys/kern/sys_generic.c
190
struct thread *td = curthread;
sys/kern/sys_generic.c
221
struct thread *td = curthread;
sys/kern/sys_generic.c
254
struct thread *td = curthread;
sys/kern/sys_generic.c
283
struct thread *td = curthread;
sys/kern/sys_generic.c
331
struct thread *td = curthread;
sys/kern/sys_generic.c
362
struct thread *td = curthread;
sys/kern/sys_generic.c
394
struct thread *td = curthread;
sys/kern/sys_generic.c
425
struct thread *td = curthread;
sys/kern/sys_generic.c
458
struct thread *td = curthread;
sys/kern/sys_generic.c
484
struct thread *td = curthread;
sys/kern/sys_generic.c
562
struct thread *td = curthread;
sys/kern/sys_generic.c
833
struct thread *td = curthread;
sys/kern/sys_mqueue.c
1016
error = mqueue_get(curthread->td_lwp, uap->mqdes, &fp);
sys/kern/sys_mqueue.c
1046
error = mqueue_get(curthread->td_lwp, uap->mqdes, &fp);
sys/kern/sys_mqueue.c
1082
struct thread *td = curthread;
sys/kern/sys_mqueue.c
161
KKASSERT(lockstatus(&mqlist_mtx, curthread));
sys/kern/sys_mqueue.c
184
fp = holdfp(curthread, (int)mqd, -1); /* XXX: Why -1 ? */
sys/kern/sys_mqueue.c
423
struct thread *td = curthread;
sys/kern/sys_mqueue.c
534
KKASSERT(lockstatus(&mq->mq_mtx, curthread));
sys/kern/sys_mqueue.c
739
error = mq_receive1(curthread->td_lwp, uap->mqdes, uap->msg_ptr,
sys/kern/sys_mqueue.c
771
error = mq_receive1(curthread->td_lwp, uap->mqdes, uap->msg_ptr,
sys/kern/sys_mqueue.c
924
return mq_send1(curthread->td_lwp, uap->mqdes, uap->msg_ptr,
sys/kern/sys_mqueue.c
951
return mq_send1(curthread->td_lwp, uap->mqdes, uap->msg_ptr,
sys/kern/sys_mqueue.c
978
error = mqueue_get(curthread->td_lwp, uap->mqdes, &fp);
sys/kern/sys_pipe.c
279
struct thread *td = curthread;
sys/kern/sys_pipe.c
477
atomic_set_int(&curthread->td_mpflags, TDF_MP_BATCH_DEMARC);
sys/kern/sys_pipe.c
526
if (CURSIG(curthread->td_lwp)) {
sys/kern/sys_pipe.c
788
if (CURSIG(curthread->td_lwp)) {
sys/kern/sys_process.c
408
uio.uio_td = curthread;
sys/kern/sys_process.c
444
uio.uio_td = curthread;
sys/kern/sys_process.c
492
uio.uio_td = curthread;
sys/kern/sys_process.c
523
uio.uio_td = curthread;
sys/kern/sys_process.c
554
uio.uio_td = curthread;
sys/kern/sys_socket.c
77
atomic_set_int(&curthread->td_mpflags, TDF_MP_BATCH_DEMARC);
sys/kern/sysv_msg.c
205
struct thread *td = curthread;
sys/kern/sysv_msg.c
347
struct thread *td = curthread;
sys/kern/sysv_msg.c
458
struct thread *td = curthread;
sys/kern/sysv_msg.c
790
struct thread *td = curthread;
sys/kern/sysv_sem.c
349
struct thread *td = curthread;
sys/kern/sysv_sem.c
576
struct thread *td = curthread;
sys/kern/sysv_sem.c
730
struct thread *td = curthread;
sys/kern/sysv_shm.c
225
struct thread *td = curthread;
sys/kern/sysv_shm.c
263
struct thread *td = curthread;
sys/kern/sysv_shm.c
403
struct thread *td = curthread;
sys/kern/sysv_shm.c
613
struct thread *td = curthread;
sys/kern/tty.c
1689
lp = curthread->td_lwp;
sys/kern/tty.c
1955
struct lwp *lp = curthread->td_lwp;
sys/kern/tty.c
2000
lp = curthread->td_lwp;
sys/kern/tty.c
855
struct thread *td = curthread;
sys/kern/tty_pty.c
439
lp = curthread->td_lwp;
sys/kern/uipc_msg.c
101
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
114
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
178
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
193
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
257
netmsg_init(&msg.base, so1, &curthread->td_msgport,
sys/kern/uipc_msg.c
283
msg.nm_td = curthread;
sys/kern/uipc_msg.c
295
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
321
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
346
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
360
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
373
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
416
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
434
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
450
netmsg_init(&msg, so, &curthread->td_msgport, 0,
sys/kern/uipc_msg.c
505
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
518
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
530
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
565
netmsg_init(&msg.base, so, &curthread->td_msgport,
sys/kern/uipc_msg.c
604
netmsg_init(&msg.base, NULL, &curthread->td_msgport,
sys/kern/uipc_msg.c
710
netmsg_init(&msg.base, nmsg->nm_so, &curthread->td_msgport,
sys/kern/uipc_syscalls.c
1039
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
1073
prison_local_ip(curthread, sa);
sys/kern/uipc_syscalls.c
1097
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
1154
prison_local_ip(curthread, sa);
sys/kern/uipc_syscalls.c
1215
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
1244
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
1278
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
1305
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
1365
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
1416
prison_local_ip(curthread, sa);
sys/kern/uipc_syscalls.c
1450
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
1502
prison_local_ip(curthread, sa);
sys/kern/uipc_syscalls.c
158
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
1584
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
1688
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
185
if (!prison_remote_ip(curthread, sa)) {
sys/kern/uipc_syscalls.c
198
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
287
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
345
netmsg_init_abortable(&msg.base, head, &curthread->td_msgport,
sys/kern/uipc_syscalls.c
457
prison_local_ip(curthread, sa);
sys/kern/uipc_syscalls.c
495
prison_local_ip(curthread, sa);
sys/kern/uipc_syscalls.c
537
prison_local_ip(curthread, sa);
sys/kern/uipc_syscalls.c
573
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
605
&curthread->td_msgport,
sys/kern/uipc_syscalls.c
644
if (!prison_remote_ip(curthread, sa)) {
sys/kern/uipc_syscalls.c
669
if (!prison_remote_ip(curthread, sa)) {
sys/kern/uipc_syscalls.c
682
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
686
struct ucred *cred = curthread->td_ucred;
sys/kern/uipc_syscalls.c
787
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
851
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
861
if (!prison_remote_ip(curthread, sa)) {
sys/kern/uipc_syscalls.c
892
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
911
if (!prison_remote_ip(curthread, sa)) {
sys/kern/uipc_syscalls.c
96
struct thread *td = curthread;
sys/kern/uipc_syscalls.c
970
struct thread *td = curthread;
sys/kern/uipc_usrreq.c
1545
struct thread *td = curthread;
sys/kern/usched_dfly.c
1281
KKASSERT(lp == curthread->td_lwp);
sys/kern/vfs_bio.c
2245
curthread->td_flags |= TDF_SYSTHREAD;
sys/kern/vfs_bio.c
3862
struct lwp *lp = curthread->td_lwp;
sys/kern/vfs_bio.c
4304
if (curthread->td_flags & TDF_SYSTHREAD)
sys/kern/vfs_bio.c
4339
curthread->td_comm);
sys/kern/vfs_bio.c
4341
if (curthread->td_flags & TDF_SYSTHREAD)
sys/kern/vfs_bio.c
454
if (curthread == bufdaemonhw_td || curthread == bufdaemon_td)
sys/kern/vfs_cache.c
2125
KKASSERT(par->nc_lock.lk_lockholder == curthread);
sys/kern/vfs_cache.c
2782
uio.uio_td = curthread;
sys/kern/vfs_cache.c
518
curthread->td_comm, ncp,
sys/kern/vfs_cache.c
527
curthread->td_comm,
sys/kern/vfs_cache.c
612
curthread->td_comm, ncp,
sys/kern/vfs_cache.c
621
curthread->td_comm,
sys/kern/vfs_cache.c
685
if (lockstatus(&ncp->nc_lock, curthread) == LK_EXCLUSIVE) {
sys/kern/vfs_cache.c
705
status = lockstatus(&ncp->nc_lock, curthread);
sys/kern/vfs_default.c
1348
td = curthread;
sys/kern/vfs_default.c
211
cnp.cn_td = curthread; /* XXX */
sys/kern/vfs_default.c
283
cnp.cn_td = curthread; /* XXX */
sys/kern/vfs_default.c
314
struct thread *td = curthread;
sys/kern/vfs_default.c
394
struct thread *td = curthread;
sys/kern/vfs_default.c
473
struct thread *td = curthread;
sys/kern/vfs_default.c
551
struct thread *td = curthread;
sys/kern/vfs_default.c
626
struct thread *td = curthread;
sys/kern/vfs_default.c
710
struct thread *td = curthread;
sys/kern/vfs_default.c
797
struct thread *td = curthread;
sys/kern/vfs_default.c
867
struct thread *td = curthread;
sys/kern/vfs_default.c
955
struct thread *td = curthread;
sys/kern/vfs_jops.c
1034
jrecord_write_cred(jrec, curthread, ap->a_cred);
sys/kern/vfs_jops.c
745
auio.uio_td = curthread;
sys/kern/vfs_jops.c
813
jrecord_write_cred(jrec, curthread, ap->a_cred);
sys/kern/vfs_jops.c
998
jrecord_write_cred(jrec, curthread, ap->a_cred);
sys/kern/vfs_lock.c
1090
struct thread *td = curthread;
sys/kern/vfs_mount.c
1072
struct thread *td = curthread; /* XXX */
sys/kern/vfs_mount.c
521
struct thread *td = curthread;
sys/kern/vfs_nlookup.c
124
td = curthread;
sys/kern/vfs_nlookup.c
202
struct thread *td = curthread;
sys/kern/vfs_nlookup.c
263
td = curthread;
sys/kern/vfs_nlookup.c
307
td = curthread;
sys/kern/vfs_nlookup.c
750
if (curthread->td_proc) {
sys/kern/vfs_nlookup.c
753
curthread->td_proc->p_pid,
sys/kern/vfs_nlookup.c
754
curthread->td_comm);
sys/kern/vfs_nlookup.c
850
curthread->td_comm, nd->nl_path);
sys/kern/vfs_subr.c
801
error = waitoutput(vp, curthread);
sys/kern/vfs_syscalls.c
120
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
1235
td = curthread;
sys/kern/vfs_syscalls.c
1269
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
1419
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
1478
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
1597
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
1670
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
1762
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
1858
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
1926
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
2027
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
2091
struct thread *td __debugvar = curthread;
sys/kern/vfs_syscalls.c
2110
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
2166
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
2331
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
2446
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
2566
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
2717
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
2746
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
2861
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
3188
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
3264
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
3358
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
3410
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
3488
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
3530
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
3627
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
3734
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
3817
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
4076
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
4150
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
4504
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
4617
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
4705
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
4816
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
5003
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
5043
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
5107
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
5250
auio.uio_td = curthread;
sys/kern/vfs_syscalls.c
5298
auio.uio_td = curthread;
sys/kern/vfs_syscalls.c
5476
struct thread *td = curthread;
sys/kern/vfs_syscalls.c
616
struct thread *td = curthread;
sys/kern/vfs_vnops.c
1031
struct proc *p = curthread->td_proc;
sys/kern/vfs_vnops.c
1138
return (lockstatus(&vp->v_lock, curthread));
sys/kern/vfs_vnops.c
1158
vpls = lockstatus(&vp->v_lock, curthread);
sys/kern/vfs_vnops.c
1284
struct thread *td = curthread;
sys/kern/vfs_vnops.c
652
auio.uio_td = curthread;
sys/kern/vfs_vnops.c
734
KASSERT(uio->uio_td == curthread,
sys/kern/vfs_vnops.c
735
("uio_td %p is not td %p", uio->uio_td, curthread));
sys/kern/vfs_vnops.c
771
KASSERT(uio->uio_td == curthread,
sys/kern/vfs_vnops.c
772
("uio_td %p is not p %p", uio->uio_td, curthread));
sys/net/altq/altq_rmclass.c
546
netmsg_init(&smsg, NULL, &curthread->td_msgport, 0,
sys/net/bpf.c
652
netmsg_init(&bmsg.base, NULL, &curthread->td_msgport,
sys/net/bridge/bridgestp.c
1140
KKASSERT(&curthread->td_msgport == BRIDGE_CFGPORT);
sys/net/bridge/bridgestp.c
1229
KKASSERT(&curthread->td_msgport == BRIDGE_CFGPORT);
sys/net/bridge/bridgestp.c
1430
KKASSERT(&curthread->td_msgport == BRIDGE_CFGPORT);
sys/net/bridge/if_bridge.c
1926
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/net/bridge/if_bridge.c
3299
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/net/bridge/if_bridge.c
3449
netmsg_init(&brmsg.base, NULL, &curthread->td_msgport,
sys/net/bridge/if_bridge.c
3496
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/net/bridge/if_bridge.c
3611
KKASSERT(&curthread->td_msgport == BRIDGE_CFGPORT);
sys/net/bridge/if_bridge.c
4509
netmsg_init(&bc_msg.base, NULL, &curthread->td_msgport,
sys/net/bridge/if_bridge.c
4553
netmsg_init(&amsg.base, NULL, &curthread->td_msgport,
sys/net/bridge/if_bridge.c
4596
netmsg_init(&dmsg.base, NULL, &curthread->td_msgport,
sys/net/bridge/if_bridge.c
821
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/net/dummynet/ip_dummynet.c
2029
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/dummynet/ip_dummynet.c
2058
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/dummynet/ip_dummynet_glue.c
474
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/dummynet/ip_dummynet_glue.c
492
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/dummynet/ip_dummynet_glue.c
527
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/dummynet3/ip_dummynet3.c
2001
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/dummynet3/ip_dummynet3.c
2030
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/dummynet3/ip_dummynet3_glue.c
474
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/dummynet3/ip_dummynet3_glue.c
492
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/dummynet3/ip_dummynet3_glue.c
527
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/gre/if_gre.c
794
netmsg_init(&msg, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/if.c
1067
netmsg_init(&msg.base, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/if.c
1207
KKASSERT(lockstatus(&ifgroup_lock, curthread) == LK_EXCLUSIVE);
sys/net/if.c
1823
netmsg_init(&msg.base, NULL, &curthread->td_msgport, 0,
sys/net/if.c
1840
netmsg_init(&msg.base, NULL, &curthread->td_msgport, 0,
sys/net/if.c
288
if (!force && curthread->td_type == TD_TYPE_NETISR &&
sys/net/if.c
3526
netmsg_init(&msg.base, NULL, &curthread->td_msgport,
sys/net/if.c
3564
netmsg_init(&msg.base, NULL, &curthread->td_msgport,
sys/net/if.c
3586
netmsg_init(&msg.base, NULL, &curthread->td_msgport,
sys/net/if.c
3788
KASSERT(curthread->td_type != TD_TYPE_NETISR,
sys/net/if.c
3796
KASSERT(curthread->td_type != TD_TYPE_NETISR,
sys/net/if.c
3889
KASSERT(curthread->td_type == TD_TYPE_NETISR, ("not in netisr"));
sys/net/if.c
3899
KASSERT(curthread->td_type == TD_TYPE_NETISR, ("not in netisr"));
sys/net/if.c
883
netmsg_init(&nmsg, NULL, &curthread->td_msgport, 0,
sys/net/if.c
911
netmsg_init(&base, NULL, &curthread->td_msgport, 0,
sys/net/if_ethersubr.c
1188
if (&curthread->td_msgport ==
sys/net/if_poll.c
1058
struct thread *td = curthread;
sys/net/if_poll.c
1158
KKASSERT(&curthread->td_msgport == netisr_cpuport(io_ctx->poll_cpuid));
sys/net/if_poll.c
1188
netmsg_init(&msg.base, NULL, &curthread->td_msgport,
sys/net/if_poll.c
1204
KKASSERT(&curthread->td_msgport == netisr_cpuport(io_ctx->poll_cpuid));
sys/net/if_poll.c
1229
netmsg_init(&msg.base, NULL, &curthread->td_msgport,
sys/net/if_poll.c
1243
KKASSERT(&curthread->td_msgport == netisr_cpuport(io_ctx->poll_cpuid));
sys/net/if_poll.c
1285
KKASSERT(&curthread->td_msgport == netisr_cpuport(io_ctx->poll_cpuid));
sys/net/if_poll.c
1419
KKASSERT(&curthread->td_msgport == netisr_cpuport(comm->poll_cpuid));
sys/net/if_poll.c
1452
netmsg_init(&nmsg, NULL, &curthread->td_msgport,
sys/net/if_poll.c
1464
KKASSERT(&curthread->td_msgport == netisr_cpuport(comm->poll_cpuid));
sys/net/if_poll.c
1500
netmsg_init(&nmsg, NULL, &curthread->td_msgport,
sys/net/if_poll.c
1513
KKASSERT(&curthread->td_msgport == netisr_cpuport(comm->poll_cpuid));
sys/net/if_poll.c
1538
netmsg_init(&nmsg, NULL, &curthread->td_msgport,
sys/net/if_poll.c
1551
KKASSERT(&curthread->td_msgport == netisr_cpuport(comm->poll_cpuid));
sys/net/if_poll.c
372
netmsg_init(&msg, NULL, &curthread->td_msgport, 0, ifpoll_init_handler);
sys/net/if_poll.c
411
netmsg_init(&nmsg, NULL, &curthread->td_msgport,
sys/net/if_poll.c
446
netmsg_init(&nmsg, NULL, &curthread->td_msgport,
sys/net/if_poll.c
467
KKASSERT(&curthread->td_msgport == netisr_cpuport(cpuid));
sys/net/if_poll.c
501
KKASSERT(&curthread->td_msgport == netisr_cpuport(cpuid));
sys/net/if_poll.c
544
struct thread *td = curthread;
sys/net/if_poll.c
823
struct thread *td = curthread;
sys/net/if_poll.c
919
struct thread *td = curthread;
sys/net/if_poll.c
985
struct thread *td = curthread;
sys/net/ipfw/ip_fw2.c
4667
netmsg_init(&fwmsg.base, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
4686
netmsg_init(&fwmsg.base, NULL, &curthread->td_msgport,
sys/net/ipfw/ip_fw2.c
4822
netmsg_init(&nmsg, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
4923
netmsg_init(&dmsg.base, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
5001
netmsg_init(&dmsg.base, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
5057
netmsg_init(nmsg, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
5094
netmsg_init(nmsg, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
5131
netmsg_init(nmsg, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
5273
netmsg_init(nmsg, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
5826
netmsg_init(&nm.base, NULL, &curthread->td_msgport,
sys/net/ipfw/ip_fw2.c
5872
netmsg_init(&nmsg, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
5913
netmsg_init(&nm, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
5996
netmsg_init(&nm.base, NULL, &curthread->td_msgport,
sys/net/ipfw/ip_fw2.c
6008
netmsg_init(&nm.base, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
6244
netmsg_init(&nm.base, NULL, &curthread->td_msgport,
sys/net/ipfw/ip_fw2.c
6247
netmsg_init(&nm.base, NULL, &curthread->td_msgport,
sys/net/ipfw/ip_fw2.c
6312
netmsg_init(&nm, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
6322
netmsg_init(&nm, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
6454
netmsg_init(&nm.base, NULL, &curthread->td_msgport,
sys/net/ipfw/ip_fw2.c
6477
netmsg_init(&nm.base, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
6532
netmsg_init(&nm, NULL, &curthread->td_msgport,
sys/net/ipfw/ip_fw2.c
7173
netmsg_init(&nmsg, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
7353
netmsg_init(&nm, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
7389
netmsg_init(&fwmsg.base, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
7443
netmsg_init(&smsg, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
7498
netmsg_init(&nm, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
7540
netmsg_init(&smsg, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw/ip_fw2.c
7550
netmsg_init(&smsg, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/ipfw3/ip_fw3.c
1332
IPFW_ASSERT_CFGPORT(&curthread->td_msgport);
sys/net/ipfw3/ip_fw3.c
1347
IPFW_ASSERT_CFGPORT(&curthread->td_msgport);
sys/net/ipfw3/ip_fw3.c
1388
netmsg_init(&nmsg, NULL, &curthread->td_msgport,
sys/net/ipfw3/ip_fw3.c
1460
netmsg_init(&fwmsg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3/ip_fw3.c
1485
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/ipfw3/ip_fw3.c
1523
netmsg_init(&smsg, NULL, &curthread->td_msgport,
sys/net/ipfw3/ip_fw3.c
708
IPFW_ASSERT_CFGPORT(&curthread->td_msgport);
sys/net/ipfw3/ip_fw3.c
737
netmsg_init(nmsg, NULL, &curthread->td_msgport,
sys/net/ipfw3/ip_fw3.c
804
IPFW_ASSERT_CFGPORT(&curthread->td_msgport);
sys/net/ipfw3/ip_fw3.c
814
netmsg_init(&dmsg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3/ip_fw3.c
858
netmsg_init(nmsg, NULL, &curthread->td_msgport,
sys/net/ipfw3/ip_fw3.c
913
netmsg_init(nmsg, NULL, &curthread->td_msgport,
sys/net/ipfw3/ip_fw3_set.c
109
netmsg_init(&msg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3/ip_fw3_set.c
144
netmsg_init(&msg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3/ip_fw3_set.c
181
netmsg_init(&msg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3/ip_fw3_set.c
246
netmsg_init(&msg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3_basic/ip_fw3_state.c
409
netmsg_init(&msg, NULL, &curthread->td_msgport, 0,
sys/net/ipfw3_basic/ip_fw3_state.c
588
netmsg_init(&msg, NULL, &curthread->td_msgport, 0,
sys/net/ipfw3_basic/ip_fw3_state.c
687
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/net/ipfw3_basic/ip_fw3_state.c
705
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/net/ipfw3_basic/ip_fw3_sync.c
175
td = curthread->td_proc ? curthread : &thread0;
sys/net/ipfw3_basic/ip_fw3_sync.c
242
td = curthread->td_proc ? curthread : &thread0;
sys/net/ipfw3_basic/ip_fw3_sync.c
277
td = curthread->td_proc ? curthread : &thread0;
sys/net/ipfw3_basic/ip_fw3_sync.c
338
td = curthread->td_proc ? curthread : &thread0;
sys/net/ipfw3_basic/ip_fw3_sync.c
457
td = curthread->td_proc ? curthread : &thread0;
sys/net/ipfw3_basic/ip_fw3_table.c
307
netmsg_init(&tbmsg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3_basic/ip_fw3_table.c
322
netmsg_init(&tbmsg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3_basic/ip_fw3_table.c
469
netmsg_init(&tbmsg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3_basic/ip_fw3_table.c
484
netmsg_init(&tbmsg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3_basic/ip_fw3_table.c
499
netmsg_init(&tbmsg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3_basic/ip_fw3_table.c
514
netmsg_init(&tbmsg.base, NULL, &curthread->td_msgport,
sys/net/ipfw3_basic/ip_fw3_table.c
597
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/net/ipfw3_basic/ip_fw3_table.c
609
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/net/ipfw3_nat/ip_fw3_nat.c
1005
netmsg_init(&msg, NULL, &curthread->td_msgport, 0,
sys/net/ipfw3_nat/ip_fw3_nat.c
1022
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/net/ipfw3_nat/ip_fw3_nat.c
1046
netmsg_init(&msg1->base, NULL, &curthread->td_msgport,
sys/net/ipfw3_nat/ip_fw3_nat.c
1052
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/net/ipfw3_nat/ip_fw3_nat.c
387
netmsg_init(&msg->base, NULL, &curthread->td_msgport,
sys/net/ipfw3_nat/ip_fw3_nat.c
779
netmsg_init(&msg->base, NULL, &curthread->td_msgport, 0,
sys/net/ipfw3_nat/ip_fw3_nat.c
858
netmsg_init(&msg->base, NULL, &curthread->td_msgport,
sys/net/ipfw3_nat/ip_fw3_nat.c
872
netmsg_init(&msg->base, NULL, &curthread->td_msgport,
sys/net/lagg/ieee8023ad_lacp.h
282
#define LACP_LOCK_ASSERT(_lsc) KKASSERT(lockstatus(&(_lsc)->lsc_lock, curthread)==LK_EXCLUSIVE)
sys/net/lagg/if_lagg.h
278
#define LAGG_RLOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_lock, curthread) == LK_SHARED)
sys/net/lagg/if_lagg.h
279
#define LAGG_WLOCK_ASSERT(_sc) KKASSERT(lockstatus(&(_sc)->sc_lock, curthread) == LK_EXCLUSIVE)
sys/net/netisr.c
170
if ((lmsg->ms_flags & MSGF_SYNC) && port == &curthread->td_msgport) {
sys/net/netisr.c
297
netmsg_init(&smsg, NULL, &curthread->td_msgport, 0, netmsg_sync_handler);
sys/net/netisr.c
322
thread_t td = curthread;
sys/net/netisr.c
460
KASSERT(&curthread->td_msgport == port, ("wrong msgport"));
sys/net/netisr.c
602
netmsg_init(&nm.base, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/netisr.c
639
netmsg_init(&nm.base, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/netisr2.h
131
(&curthread->td_msgport == netisr_cpuport((n)))
sys/net/netisr2.h
135
KASSERT(IN_NETISR(0), ("thread %p is not netisr0", curthread))
sys/net/netisr2.h
139
curthread, (n), netisr_ncpus))
sys/net/netisr2.h
150
KASSERT(curthread->td_type != TD_TYPE_NETISR ||
sys/net/netisr2.h
151
IN_NETISR(0) || port == &curthread->td_msgport,
sys/net/netisr2.h
152
("can't domsg to netisr port %p from thread %p", port, curthread));
sys/net/pf/if_pfsync.c
1816
netmsg_init(&nmsg, NULL, &curthread->td_msgport, 0,
sys/net/pf/if_pfsync.c
1839
netmsg_init(&nmsg, NULL, &curthread->td_msgport, 0,
sys/net/pf/if_pfsync.c
213
netmsg_init(&msg, NULL, &curthread->td_msgport, 0, netmsg_sync_handler);
sys/net/pf/pf.c
3422
netmsg_init(&msg->base, NULL, &curthread->td_msgport,
sys/net/pf/pf_if.c
624
netmsg_init(&msg.base, NULL, &curthread->td_msgport, 0,
sys/net/pfil.c
267
netmsg_init(nmsg, NULL, &curthread->td_msgport,
sys/net/pfil.c
370
netmsg_init(nmsg, NULL, &curthread->td_msgport,
sys/net/pfil.c
385
KKASSERT(&curthread->td_msgport == PFIL_CFGPORT);
sys/net/pfil.c
409
KKASSERT(&curthread->td_msgport == PFIL_CFGPORT);
sys/net/pfil.c
450
KKASSERT(&curthread->td_msgport == PFIL_CFGPORT);
sys/net/radix.c
1388
netmsg_init(&msg, NULL, &curthread->td_msgport, 0, rn_init_handler);
sys/net/route.c
1655
netmsg_init(&msg.base, NULL, &curthread->td_msgport, flags,
sys/net/route.c
167
netmsg_init(&msg, NULL, &curthread->td_msgport, 0, rtable_init_oncpu);
sys/net/route.c
1769
netmsg_init(&msg, NULL, &curthread->td_msgport, flags,
sys/net/route.c
1911
netmsg_init(&msg.base, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/net/route.c
467
netmsg_init(&msg.base, NULL, &curthread->td_msgport,
sys/net/route.c
717
netmsg_init(&msg.base, NULL, &curthread->td_msgport, flags,
sys/net/rtsock.c
1840
&curthread->td_msgport, 0,
sys/net/tap/if_tap.c
345
if (curthread->td_proc)
sys/net/tap/if_tap.c
346
fsetown(curthread->td_proc->p_pid, &sc->tap_sigtd);
sys/net/vlan/if_vlan.c
1073
netmsg_init(&vmsg.base, NULL, &curthread->td_msgport,
sys/net/vlan/if_vlan.c
1105
netmsg_init(&vmsg.base, NULL, &curthread->td_msgport,
sys/net/vlan/if_vlan.c
440
netmsg_init(&vmsg.base, NULL, &curthread->td_msgport,
sys/net/vlan/if_vlan.c
683
netmsg_init(&vmsg.base, NULL, &curthread->td_msgport,
sys/net/vlan/if_vlan.c
791
netmsg_init(&vmsg.base, NULL, &curthread->td_msgport,
sys/net/vlan/if_vlan.c
833
netmsg_init(&vmsg.base, NULL, &curthread->td_msgport,
sys/net/vlan/if_vlan.c
931
netmsg_init(&vmsg.base, NULL, &curthread->td_msgport,
sys/net/wg/if_wg.c
1019
ret = socreate(af, so, SOCK_DGRAM, IPPROTO_UDP, curthread);
sys/net/wg/if_wg.c
1027
ret = sobind(*so, sa, curthread);
sys/net/wg/if_wg.c
1057
KKASSERT(lockstatus(&sc->sc_lock, curthread) == LK_EXCLUSIVE);
sys/net/wg/if_wg.c
1107
KKASSERT(lockstatus(&sc->sc_lock, curthread) == LK_EXCLUSIVE);
sys/net/wg/if_wg.c
1145
curthread);
sys/net/wg/if_wg.c
1150
curthread);
sys/net/wg/if_wg.c
583
KKASSERT(lockstatus(&sc->sc_lock, curthread) == LK_EXCLUSIVE);
sys/net/wg/if_wg.c
640
KKASSERT(lockstatus(&sc->sc_lock, curthread) == LK_EXCLUSIVE);
sys/net/wg/if_wg.c
968
KKASSERT(lockstatus(&sc->sc_lock, curthread) == LK_EXCLUSIVE);
sys/net/wg/wg_cookie.c
505
KKASSERT(lockstatus(&rl->rl_mtx, curthread) == LK_EXCLUSIVE);
sys/net/wg/wg_noise.c
1299
KKASSERT(lockstatus(&r->r_handshake_lock, curthread) == LK_EXCLUSIVE);
sys/net/wg/wg_noise.c
1370
KKASSERT(lockstatus(&r->r_handshake_lock, curthread) == LK_EXCLUSIVE);
sys/net/wg/wg_noise.c
575
KKASSERT(lockstatus(&r->r_handshake_lock, curthread) == LK_EXCLUSIVE);
sys/net/wg/wg_noise.c
851
KKASSERT(lockstatus(&r->r_keypair_lock, curthread) == LK_EXCLUSIVE);
sys/netgraph/ksocket/ng_ksocket.c
559
struct thread *td = curthread->td_proc ? curthread : &thread0; /* XXX broken */
sys/netgraph/ksocket/ng_ksocket.c
640
struct thread *td = curthread->td_proc ? curthread : &thread0; /* XXX broken */
sys/netgraph/ksocket/ng_ksocket.c
880
struct thread *td = curthread->td_proc ? curthread : &thread0; /* XXX broken */
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1531
curthread /* XXX */);
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1717
netmsg_init(&msg.base, s->l2so, &curthread->td_msgport,
sys/netgraph7/bluetooth/socket/ng_btsocket_rfcomm.c
1723
msg.nm_td = curthread; /* XXX */
sys/netgraph7/ksocket/ng_ksocket.c
546
struct thread *td = curthread->td_proc ? curthread : &thread0; /* XXX broken */
sys/netgraph7/ksocket/ng_ksocket.c
661
struct thread *td = curthread->td_proc ? curthread : &thread0; /* XXX broken */
sys/netgraph7/ksocket/ng_ksocket.c
886
struct thread *td = curthread->td_proc ? curthread : &thread0; /* XXX broken */
sys/netgraph7/netgraph/ng_base.c
1877
while ((msg = lwkt_waitport(&curthread->td_msgport, 0)) != NULL) {
sys/netinet/if_ether.c
1421
netmsg_init(&nm, NULL, &curthread->td_msgport, 0, arp_init_dispatch);
sys/netinet/if_ether.c
719
KASSERT(curthread->td_type == TD_TYPE_NETISR,
sys/netinet/in.c
1475
netmsg_init(&nmsg, NULL, &curthread->td_msgport, 0,
sys/netinet/in.c
242
netmsg_init(&msg.base, NULL, &curthread->td_msgport, 0,
sys/netinet/in.c
358
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/netinet/in.c
370
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/netinet/in.c
382
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/netinet/in.c
394
netmsg_init(&msg, NULL, &curthread->td_msgport,
sys/netinet/in_pcb.c
1238
KASSERT(curthread->td_type == TD_TYPE_NETISR, ("not in netisr"));
sys/netinet/in_pcb.c
1272
KASSERT(curthread->td_type == TD_TYPE_NETISR, ("not in netisr"));
sys/netinet/in_pcb.c
1302
KASSERT(&curthread->td_msgport == netisr_cpuport(pcbinfo->cpu),
sys/netinet/in_pcb.c
1903
KASSERT(&curthread->td_msgport == netisr_cpuport(pcbinfo->cpu),
sys/netinet/in_pcb.c
1924
KASSERT(&curthread->td_msgport == netisr_cpuport(pcbinfo->cpu),
sys/netinet/in_pcb.c
2287
KASSERT(&curthread->td_msgport == netisr_cpuport(pcbinfo->cpu),
sys/netinet/in_pcb.c
2365
KASSERT(&curthread->td_msgport == netisr_cpuport(pcbinfo->cpu),
sys/netinet/in_pcb.c
243
KASSERT(&curthread->td_msgport == netisr_cpuport(pcbinfo->cpu),
sys/netinet/in_pcb.c
259
KASSERT(&curthread->td_msgport == netisr_cpuport(pcbinfo->cpu),
sys/netinet/in_rmx.c
596
netmsg_init(&msg.base, NULL, &curthread->td_msgport, MSGF_PRIORITY,
sys/netinet/ip_carp.c
1949
netmsg_init(&cmsg.base, NULL, &curthread->td_msgport, 0,
sys/netinet/ip_carp.c
2398
netmsg_init(&cmsg.base, NULL, &curthread->td_msgport, 0,
sys/netinet/ip_carp.c
2510
netmsg_init(&cmsg.base, NULL, &curthread->td_msgport, 0,
sys/netinet/ip_carp.c
2567
netmsg_init(&cmsg.base, NULL, &curthread->td_msgport, 0,
sys/netinet/ip_carp.c
2605
netmsg_init(&cmsg.base, NULL, &curthread->td_msgport, 0,
sys/netinet/ip_carp.c
2653
netmsg_init(&cmsg.base, NULL, &curthread->td_msgport, 0,
sys/netinet/ip_carp.c
2692
netmsg_init(&cmsg.base, NULL, &curthread->td_msgport, 0,
sys/netinet/ip_carp.c
709
netmsg_init(&cmsg.base, NULL, &curthread->td_msgport, 0,
sys/netinet/ip_carp.c
915
netmsg_init(&cmsg.base, NULL, &curthread->td_msgport, 0,
sys/netinet/ip_encap.c
153
KASSERT(port != &curthread->td_msgport,
sys/netinet/ip_flow.c
511
netmsg_init(&amsg.base, NULL, &curthread->td_msgport,
sys/netinet/ip_flow.c
548
netmsg_init(&nm, NULL, &curthread->td_msgport, 0,
sys/netinet/ip_icmp.c
265
KASSERT(curthread->td_type == TD_TYPE_NETISR, ("not in netisr"));
sys/netinet/ip_icmp.c
365
KASSERT(curthread->td_type == TD_TYPE_NETISR, ("not in netisr"));
sys/netinet/ip_icmp.c
395
KASSERT(&curthread->td_msgport != port,
sys/netinet/ip_icmp.c
458
KASSERT(curthread->td_type == TD_TYPE_NETISR, ("not in netisr"));
sys/netinet/ip_id.c
92
netmsg_init(&msg, NULL, &curthread->td_msgport, 0,
sys/netinet/ip_input.c
2018
if (port != &curthread->td_msgport) {
sys/netinet/ip_input.c
2042
if (curthread->td_type == TD_TYPE_NETISR) {
sys/netinet/ip_input.c
495
if (&curthread->td_msgport !=
sys/netinet/ip_input.c
885
if (port != &curthread->td_msgport) {
sys/netinet/ip_output.c
1085
if (&curthread->td_msgport != netisr_cpuport(0)) {
sys/netinet/tcp_input.c
1003
KKASSERT(so->so_port == &curthread->td_msgport);
sys/netinet/tcp_input.c
1139
KKASSERT(so->so_port == &curthread->td_msgport);
sys/netinet/tcp_output.c
202
KKASSERT(so->so_port == &curthread->td_msgport);
sys/netinet/tcp_subr.c
2473
netmsg_init(&nmsg, NULL, &curthread->td_msgport, 0,
sys/netinet/tcp_subr.c
905
netmsg_init(&nmsg.base, NULL, &curthread->td_msgport,
sys/netinet/tcp_syncache.c
350
netmsg_init(&nm, NULL, &curthread->td_msgport, 0,
sys/netinet/tcp_syncache.c
824
KASSERT(port == &curthread->td_msgport,
sys/netinet/tcp_syncache.c
825
("TCP PORT MISMATCH %p vs %p\n", port, &curthread->td_msgport));
sys/netinet/tcp_usrreq.c
1081
tcp_create_timermsg(tp, &curthread->td_msgport);
sys/netinet/tcp_usrreq.c
1220
if (port != &curthread->td_msgport) {
sys/netinet/tcp_usrreq.c
1354
if (port != &curthread->td_msgport) {
sys/netinet/tcp_usrreq.c
1425
tcp_create_timermsg(tp, &curthread->td_msgport);
sys/netinet/tcp_usrreq.c
354
if (&curthread->td_msgport != port0) {
sys/netinet/tcp_usrreq.c
455
if (&curthread->td_msgport != port0) {
sys/netinet/tcp_usrreq.c
508
netmsg_init(&nm.base, NULL, &curthread->td_msgport,
sys/netinet/tcp_usrreq.c
562
netmsg_init(&nm.base, NULL, &curthread->td_msgport,
sys/netinet/udp_usrreq.c
1474
if (&curthread->td_msgport != port) {
sys/netinet/udp_usrreq.c
1586
if (port != &curthread->td_msgport) {
sys/netinet/udp_usrreq.c
1611
so->so_orig_port = &curthread->td_msgport;
sys/netinet/udp_usrreq.c
1760
struct thread *td = curthread;
sys/netinet6/in6.c
2418
netmsg_init(&nmsg, NULL, &curthread->td_msgport, 0, in6_if_up_dispatch);
sys/netinet6/in6.c
450
netmsg_init(&msg.base, NULL, &curthread->td_msgport, 0,
sys/netinet6/in6_ifattach.c
676
netmsg_init(&nmsg.nmsg, NULL, &curthread->td_msgport, 0,
sys/netinet6/in6_ifattach.c
717
netmsg_init(&nmsg.nmsg, NULL, &curthread->td_msgport, 0,
sys/netinet6/in6_ifattach.c
860
netmsg_init(&nmsg, NULL, &curthread->td_msgport, 0,
sys/netinet6/in6_pcb.c
429
KASSERT(curthread->td_type == TD_TYPE_NETISR, ("not in netisr"));
sys/netinet6/in6_pcb.c
478
KASSERT(curthread->td_type == TD_TYPE_NETISR, ("not in netisr"));
sys/netinet6/ip6_input.c
1057
struct thread *td = curthread; /* XXX */
sys/netinet6/nd6.c
292
netmsg_init(&nmsg.nmsg, NULL, &curthread->td_msgport, 0,
sys/netproto/802_11/ieee80211_dragonfly.h
623
KKASSERT(lockstatus(&(ic)->ic_comlock, curthread) == LK_EXCLUSIVE)
sys/netproto/802_11/ieee80211_dragonfly.h
625
KKASSERT(lockstatus(&(ic)->ic_comlock, curthread) != LK_EXCLUSIVE)
sys/netproto/802_11/ieee80211_dragonfly.h
627
KKASSERT(lockstatus(&(nt)->nt_nodelock, curthread) == LK_EXCLUSIVE)
sys/netproto/802_11/ieee80211_dragonfly.h
629
KKASSERT(lockstatus(&(nt)->nt_scanlock, curthread) == LK_EXCLUSIVE)
sys/netproto/802_11/ieee80211_dragonfly.h
631
KKASSERT(lockstatus(&(ic)->ic_txlock, curthread) == LK_EXCLUSIVE)
sys/netproto/802_11/ieee80211_dragonfly.h
633
KKASSERT(lockstatus(&(ic)->ic_txlock, curthread) != LK_EXCLUSIVE)
sys/netproto/802_11/ieee80211_dragonfly.h
635
KKASSERT(lockstatus(&(aq)->aq_lock, curthread) == LK_EXCLUSIVE)
sys/netproto/802_11/ieee80211_dragonfly.h
637
KKASSERT(lockstatus(&(as)->as_lock, curthread) == LK_EXCLUSIVE)
sys/netproto/802_11/ieee80211_dragonfly.h
639
KKASSERT(lockstatus(&(rt)->rt_lock, curthread) == LK_EXCLUSIVE)
sys/netproto/802_11/ieee80211_dragonfly.h
641
KKASSERT(lockstatus(&(ms)->ms_rt_lock, curthread) == LK_EXCLUSIVE)
sys/netproto/802_11/ieee80211_dragonfly.h
644
(lockstatus(&(nt)->nt_nodelock, curthread) == LK_EXCLUSIVE)
sys/netproto/802_11/wlan/ieee80211_alq.c
153
r->r_threadid = htonl((uint32_t) curthread->td_tid);
sys/netproto/802_11/wlan/ieee80211_alq.c
80
curthread->td_ucred,
sys/netproto/802_11/wlan/ieee80211_dragonfly.c
1054
(void)kern_kldload(curthread, modname, NULL);
sys/netproto/smb/smb_conn.c
382
if (smb_co_lockstatus(cp, curthread) == LK_EXCLUSIVE &&
sys/netproto/smb/smb_conn.c
404
KASSERT(smb_co_lockstatus(parent, curthread) == LK_EXCLUSIVE, ("smb_co_addchild: parent not locked"));
sys/netproto/smb/smb_conn.c
405
KASSERT(smb_co_lockstatus(child, curthread) == LK_EXCLUSIVE, ("smb_co_addchild: child not locked"));
sys/netproto/smb/smb_dev.c
150
smb_makescred(&scred, curthread, NULL);
sys/netproto/smb/smb_dev.c
302
auio.uio_td = curthread;
sys/platform/pc64/include/thread.h
81
#define curproc curthread->td_proc
sys/platform/pc64/isa/clock.c
1652
lwkt_setpri_initial(td, curthread->td_pri);
sys/platform/pc64/isa/clock.c
196
lwkt_schedulerclock(curthread);
sys/platform/pc64/x86_64/db_interface.c
376
dumpthread = curthread;
sys/platform/pc64/x86_64/dump_machdep.c
274
dumpthread = curthread;
sys/platform/pc64/x86_64/efirt.c
345
thread_t td = curthread;
sys/platform/pc64/x86_64/efirt.c
364
thread_t td = curthread;
sys/platform/pc64/x86_64/machdep.c
1478
struct thread *td = curthread;
sys/platform/pc64/x86_64/machdep.c
746
struct lwp *lp = curthread->td_lwp;
sys/platform/pc64/x86_64/machdep.c
948
struct lwp *lp = curthread->td_lwp;
sys/platform/pc64/x86_64/mp_machdep.c
1583
KKASSERT((curthread->td_flags & TDF_RUNQ) == 0);
sys/platform/pc64/x86_64/npx.c
159
fpusave(curthread->td_savefpu, npx_xcr0_mask);
sys/platform/pc64/x86_64/npx.c
171
if (curthread == mdcpu->gd_npxthread)
sys/platform/pc64/x86_64/npx.c
172
npxsave(curthread->td_savefpu);
sys/platform/pc64/x86_64/npx.c
342
thread_t td = curthread;
sys/platform/pc64/x86_64/npx.c
382
thread_t td = curthread;
sys/platform/pc64/x86_64/npx.c
440
thread_t td = curthread;
sys/platform/pc64/x86_64/npx.c
460
thread_t td = curthread;
sys/platform/pc64/x86_64/pmap.c
1383
curthread->td_pcb->pcb_onfault = (void *)1;
sys/platform/pc64/x86_64/pmap.c
1397
curthread->td_pcb->pcb_onfault = NULL;
sys/platform/pc64/x86_64/pmap.c
5388
lp = curthread->td_lwp;
sys/platform/pc64/x86_64/pmap.c
6406
td = curthread;
sys/platform/pc64/x86_64/pmap.c
6513
KKASSERT(curthread->td_critcount >= 2);
sys/platform/pc64/x86_64/sysarch.c
54
curthread->td_lwp->lwp_md.md_regs->tf_rflags |= PSL_IOPL;
sys/platform/pc64/x86_64/sysarch.c
62
curthread->td_lwp->lwp_md.md_regs->tf_rflags &= ~PSL_IOPL;
sys/platform/pc64/x86_64/tls.c
106
curthread->td_tls.info[i] = info;
sys/platform/pc64/x86_64/tls.c
138
info = curthread->td_tls.info[i];
sys/platform/pc64/x86_64/trap.c
1090
kprintf("current thread = pri %d ", curthread->td_pri);
sys/platform/pc64/x86_64/trap.c
1091
if (curthread->td_critcount)
sys/platform/pc64/x86_64/trap.c
1116
thread_t td = curthread;
sys/platform/pc64/x86_64/trap.c
1128
thread_t td = curthread;
sys/platform/pc64/x86_64/trap.c
1161
struct thread *td = curthread;
sys/platform/pc64/x86_64/trap.c
1309
lp = curthread->td_lwp;
sys/platform/pc64/x86_64/trap.c
1399
td = curthread;
sys/platform/pc64/x86_64/trap.c
1524
struct thread *td = curthread;
sys/platform/pc64/x86_64/trap.c
846
struct lwp *lp = curthread->td_lwp;
sys/platform/pc64/x86_64/trap.c
863
thread_t td = curthread;
sys/platform/pc64/x86_64/uwrapper.c
11
return curthread->td_proc->p_vmspace->vm_pmap.copyinstr(udaddr, kaddr, len, res);
sys/platform/pc64/x86_64/uwrapper.c
17
return curthread->td_proc->p_vmspace->vm_pmap.copyin(udaddr, kaddr, len);
sys/platform/pc64/x86_64/uwrapper.c
23
return curthread->td_proc->p_vmspace->vm_pmap.copyout(kaddr, udaddr, len);
sys/platform/pc64/x86_64/uwrapper.c
30
return curthread->td_proc->p_vmspace->vm_pmap.fubyte(base);
sys/platform/pc64/x86_64/uwrapper.c
36
return curthread->td_proc->p_vmspace->vm_pmap.subyte(base, byte);
sys/platform/pc64/x86_64/uwrapper.c
42
return curthread->td_proc->p_vmspace->vm_pmap.fuword32(base);
sys/platform/pc64/x86_64/uwrapper.c
48
return curthread->td_proc->p_vmspace->vm_pmap.fuword64(base);
sys/platform/pc64/x86_64/uwrapper.c
54
return curthread->td_proc->p_vmspace->vm_pmap.suword64(base, word);
sys/platform/pc64/x86_64/uwrapper.c
60
return curthread->td_proc->p_vmspace->vm_pmap.suword32(base, word);
sys/platform/pc64/x86_64/uwrapper.c
66
return curthread->td_proc->p_vmspace->vm_pmap.swapu32(base, v);
sys/platform/pc64/x86_64/uwrapper.c
72
return curthread->td_proc->p_vmspace->vm_pmap.swapu64(base, v);
sys/platform/pc64/x86_64/uwrapper.c
78
return curthread->td_proc->p_vmspace->vm_pmap.fuwordadd32(base, v);
sys/platform/pc64/x86_64/uwrapper.c
84
return curthread->td_proc->p_vmspace->vm_pmap.fuwordadd64(base, v);
sys/platform/pc64/x86_64/vm_machdep.c
1301
thread_t td = curthread;
sys/platform/pc64/x86_64/vm_machdep.c
1321
thread_t td = curthread;
sys/platform/pc64/x86_64/vm_machdep.c
305
struct thread *td = curthread;
sys/platform/pc64/x86_64/vm_machdep.c
343
curthread->td_switch = cpu_exit_switch;
sys/platform/pc64/x86_64/vm_machdep.c
344
curthread->td_flags |= TDF_EXITING;
sys/platform/vkernel64/include/thread.h
91
#define curproc curthread->td_proc
sys/platform/vkernel64/platform/pmap.c
2506
lp = curthread->td_lwp;
sys/platform/vkernel64/platform/pmap.c
3251
if (curthread->td_lwp == lp) {
sys/platform/vkernel64/x86_64/cpu_regs.c
157
struct lwp *lp = curthread->td_lwp;
sys/platform/vkernel64/x86_64/cpu_regs.c
349
struct lwp *lp = curthread->td_lwp;
sys/platform/vkernel64/x86_64/cpu_regs.c
479
struct thread *td = curthread;
sys/platform/vkernel64/x86_64/cpu_regs.c
548
struct thread *td = curthread;
sys/platform/vkernel64/x86_64/exception.c
287
curthread);
sys/platform/vkernel64/x86_64/mp.c
331
KKASSERT(get_mplock_count(curthread) == 1);
sys/platform/vkernel64/x86_64/mp.c
351
KKASSERT((curthread->td_flags & TDF_RUNQ) == 0);
sys/platform/vkernel64/x86_64/npx.c
145
fpusave(curthread->td_savefpu, 0);
sys/platform/vkernel64/x86_64/npx.c
157
if (curthread == mdcpu->gd_npxthread)
sys/platform/vkernel64/x86_64/npx.c
158
npxsave(curthread->td_savefpu);
sys/platform/vkernel64/x86_64/npx.c
173
thread_t td = curthread;
sys/platform/vkernel64/x86_64/npx.c
187
if ((curthread->td_flags & TDF_USINGFP) == 0) {
sys/platform/vkernel64/x86_64/npx.c
188
curthread->td_flags |= TDF_USINGFP;
sys/platform/vkernel64/x86_64/npx.c
220
lwpsignal(curproc, curthread->td_lwp, SIGFPE);
sys/platform/vkernel64/x86_64/npx.c
222
fpurstor(curthread->td_savefpu, 0);
sys/platform/vkernel64/x86_64/npx.c
278
thread_t td = curthread;
sys/platform/vkernel64/x86_64/npx.c
307
thread_t td = curthread;
sys/platform/vkernel64/x86_64/tls.c
102
curthread->td_tls.info[i] = info;
sys/platform/vkernel64/x86_64/tls.c
132
info = curthread->td_tls.info[i];
sys/platform/vkernel64/x86_64/trap.c
1010
struct thread *td = curthread;
sys/platform/vkernel64/x86_64/trap.c
1140
lp = curthread->td_lwp;
sys/platform/vkernel64/x86_64/trap.c
1227
td = curthread;
sys/platform/vkernel64/x86_64/trap.c
1373
if (mdcpu->gd_npxthread != curthread) {
sys/platform/vkernel64/x86_64/trap.c
1384
if (mdcpu->gd_npxthread == curthread) {
sys/platform/vkernel64/x86_64/trap.c
1408
&curthread->td_savevext);
sys/platform/vkernel64/x86_64/trap.c
1417
if (mdcpu->gd_npxthread == curthread) {
sys/platform/vkernel64/x86_64/trap.c
1454
struct thread *td = curthread;
sys/platform/vkernel64/x86_64/trap.c
785
thread_t td = curthread;
sys/platform/vkernel64/x86_64/trap.c
942
kprintf("current thread = pri %d ", curthread->td_pri);
sys/platform/vkernel64/x86_64/trap.c
943
if (curthread->td_critcount)
sys/platform/vkernel64/x86_64/vm_machdep.c
257
struct thread *td = curthread;
sys/platform/vkernel64/x86_64/vm_machdep.c
295
curthread->td_switch = cpu_exit_switch;
sys/platform/vkernel64/x86_64/vm_machdep.c
296
curthread->td_flags |= TDF_EXITING;
sys/sys/mutex2.h
126
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
143
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
157
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
166
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
275
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
325
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
451
return((mtx->mtx_lock & MTX_EXCLUSIVE) && mtx->mtx_owner == curthread);
sys/sys/mutex2.h
462
mtx->mtx_owner != curthread);
sys/sys/serialize.h
60
#define IS_SERIALIZED(ss) ((ss)->last_td == curthread)
sys/sys/thread.h
185
#define LWKT_TOKEN_HELD_ANY(tok) _lwkt_token_held_any(tok, curthread)
sys/sys/thread.h
186
#define LWKT_TOKEN_HELD_EXCL(tok) _lwkt_token_held_excl(tok, curthread)
sys/sys/thread2.h
272
return(lwkt_getpri(curthread));
sys/vfs/autofs/autofs.c
270
struct lwp *lp = curthread->td_lwp;
sys/vfs/devfs/devfs_core.c
1121
if (port->mpu_td == curthread) {
sys/vfs/devfs/devfs_core.c
1143
lwkt_initport_thread(&rep_port, curthread);
sys/vfs/devfs/devfs_core.c
1255
lwkt_initport_thread(&devfs_msg_port, curthread);
sys/vfs/devfs/devfs_core.c
1445
KKASSERT((lockstatus(&devfs_lock, curthread)) == LK_EXCLUSIVE);
sys/vfs/devfs/devfs_core.c
1870
KKASSERT((lockstatus(&devfs_lock, curthread)) == LK_EXCLUSIVE);
sys/vfs/devfs/devfs_core.c
2688
if (devfs_run && curthread != td_core) {
sys/vfs/devfs/devfs_core.c
487
if (lockstatus(&devfs_lock, curthread) == LK_EXCLUSIVE) {
sys/vfs/devfs/devfs_rules.c
263
if ((lockstatus(&devfs_rule_lock, curthread)) != LK_EXCLUSIVE) {
sys/vfs/devfs/devfs_vnops.c
1260
KASSERT(uio->uio_td == curthread,
sys/vfs/devfs/devfs_vnops.c
1261
("uio_td %p is not td %p", uio->uio_td, curthread));
sys/vfs/devfs/devfs_vnops.c
1316
KASSERT(uio->uio_td == curthread,
sys/vfs/devfs/devfs_vnops.c
1317
("uio_td %p is not p %p", uio->uio_td, curthread));
sys/vfs/devfs/devfs_vnops.c
1583
struct proc *p = curthread->td_proc;
sys/vfs/devfs/devfs_vnops.c
282
if ((lockstatus(&devfs_lock, curthread)) != LK_EXCLUSIVE) {
sys/vfs/dirfs/dirfs.h
114
#define dirfs_node_islocked(n) (lockstatus(&(n)->dn_lock,curthread) == LK_EXCLUSIVE)
sys/vfs/ext2fs/ext2_vnops.c
262
struct thread *td = curthread;
sys/vfs/fifofs/fifo_vnops.c
190
struct thread *td = curthread;
sys/vfs/fuse/fuse_ipc.c
147
cred = curthread->td_ucred;
sys/vfs/fuse/fuse_ipc.c
151
curthread->td_proc ? curthread->td_proc->p_pid : 0);
sys/vfs/fuse/fuse_vfsops.c
163
file = holdfp_fdp(curthread->td_proc->p_fd, args.fd, FREAD | FWRITE);
sys/vfs/fuse/fuse_vfsops.c
169
dropfp(curthread, args.fd, file);
sys/vfs/hammer/hammer_btree.c
181
curthread);
sys/vfs/hammer/hammer_btree.c
2796
curthread,
sys/vfs/hammer/hammer_cursor.c
367
if (hammer_lock_excl_owned(&cursor->node->lock, curthread))
sys/vfs/hammer/hammer_cursor.c
370
hammer_lock_excl_owned(&cursor->parent->lock, curthread)) {
sys/vfs/hammer/hammer_inode.c
3362
if (curthread->td_proc) {
sys/vfs/hammer/hammer_inode.c
3365
stats = hammer_inode_inostats(hmp, curthread->td_proc->p_pid);
sys/vfs/hammer/hammer_inode.c
3373
(int)curthread->td_proc->p_pid, lower_limit);
sys/vfs/hammer/hammer_signal.c
59
if ((sig = CURSIG_NOBLOCK(curthread->td_lwp)) != 0)
sys/vfs/hammer/hammer_subs.c
124
thread_t td = curthread;
sys/vfs/hammer/hammer_subs.c
161
thread_t td = curthread;
sys/vfs/hammer/hammer_subs.c
207
thread_t td = curthread;
sys/vfs/hammer/hammer_subs.c
223
if (lock->lowner != curthread)
sys/vfs/hammer/hammer_subs.c
246
thread_t td __debugvar = curthread;
sys/vfs/hammer/hammer_subs.c
273
thread_t td __debugvar = curthread;
sys/vfs/hammer/hammer_subs.c
426
lock->rowner = curthread;
sys/vfs/hammer/hammer_subs.c
43
thread_t td = curthread;
sys/vfs/hammer/hammer_subs.c
444
lock->rowner = curthread;
sys/vfs/hammer/hammer_subs.c
473
lock->rowner = curthread;
sys/vfs/hammer/hammer_subs.c
507
lock->rowner = curthread;
sys/vfs/hammer/hammer_subs.c
579
lock->rowner = curthread;
sys/vfs/hammer/hammer_subs.c
586
lock->rowner = curthread;
sys/vfs/hammer/hammer_subs.c
664
lock->rowner = curthread;
sys/vfs/hammer/hammer_subs.c
692
lock->rowner = curthread;
sys/vfs/hammer/hammer_subs.c
84
thread_t td = curthread;
sys/vfs/hammer2/hammer2_ccms.c
107
cst->td = curthread;
sys/vfs/hammer2/hammer2_ccms.c
122
if (cst->count < 0 && cst->td == curthread) {
sys/vfs/hammer2/hammer2_ccms.c
142
cst->td = curthread;
sys/vfs/hammer2/hammer2_ccms.c
184
KKASSERT(cst->td == curthread);
sys/vfs/hammer2/hammer2_ccms.c
200
cst->td = curthread;
sys/vfs/hammer2/hammer2_ccms.c
213
KKASSERT(cst->td == curthread);
sys/vfs/hammer2/hammer2_ccms.c
241
KKASSERT(cst->td == curthread);
sys/vfs/hammer2/hammer2_ccms.c
278
cst->td = curthread;
sys/vfs/hammer2/hammer2_ccms.c
289
KKASSERT(cst->td == curthread);
sys/vfs/hammer2/hammer2_ccms.c
310
return(cst->count < 0 && cst->td == curthread);
sys/vfs/hammer2/hammer2_ccms.c
84
if (cst->count < 0 && cst->td == curthread) {
sys/vfs/hammer2/hammer2_io.c
83
dio->debug_td[i] = curthread;
sys/vfs/hammer2/hammer2_ioctl.c
212
fp = holdfp(curthread, recl->fd, -1);
sys/vfs/hammer2/hammer2_ondisk.c
284
curthread->td_ucred , NULL) == 0) {
sys/vfs/hammer2/hammer2_subr.c
386
thread_t td = curthread;
sys/vfs/hammer2/hammer2_subr.c
393
if (CURSIG_NOBLOCK(curthread->td_lwp) != 0)
sys/vfs/hammer2/hammer2_vfsops.c
1351
fp = holdfp(curthread, info.cluster_fd, -1);
sys/vfs/hammer2/hammer2_vfsops.c
2984
pcatch = curthread->td_proc ? PCATCH : 0;
sys/vfs/hammer2/hammer2_vnops.c
1844
auio.uio_td = curthread;
sys/vfs/isofs/cd9660/cd9660_vnops.c
190
auio.uio_td = curthread;
sys/vfs/mfs/mfs_vfsops.c
184
if (mfsp->mfs_td == curthread) {
sys/vfs/mfs/mfs_vfsops.c
341
mfsp->mfs_td = curthread;
sys/vfs/mfs/mfs_vfsops.c
438
thread_t td = curthread;
sys/vfs/nfs/bootp_subr.c
1528
td = curthread;
sys/vfs/nfs/nfs_bio.c
519
if (uio->uio_segflg == UIO_USERSPACE && uio->uio_td != curthread)
sys/vfs/nfs/nfs_bio.c
867
thread_t td = curthread;
sys/vfs/nfs/nfs_socket.c
1544
ltype = lockstatus(&vp->v_lock, curthread);
sys/vfs/nfs/nfs_socket.c
481
curthread /*XXX*/);
sys/vfs/nfs/nfs_socket.c
552
struct thread *td = curthread; /* XXX */
sys/vfs/nfs/nfs_subs.c
947
nfs_meta_setsize(vp, curthread, vap->va_size, 0);
sys/vfs/nfs/nfs_syscalls.c
139
struct thread *td = curthread;
sys/vfs/nfs/nfs_vfsops.c
1294
error = nfs_fsinfo(nmp, vp, curthread);
sys/vfs/nfs/nfs_vfsops.c
316
thread_t td = curthread;
sys/vfs/nfs/nfs_vfsops.c
403
thread_t td = curthread;
sys/vfs/nfs/nfs_vfsops.c
563
struct thread *td = curthread; /* XXX */
sys/vfs/nfs/nfs_vnops.c
313
thread_t td = curthread;
sys/vfs/nfs/nfs_vnops.c
3220
td = curthread; /* XXX */
sys/vfs/nfs/nfs_vnops.c
3274
error = nfs_flush(ap->a_vp, ap->a_waitfor, curthread, 1);
sys/vfs/nfs/nfs_vnops.c
639
thread_t td = curthread;
sys/vfs/nfs/nfs_vnops.c
691
thread_t td = curthread;
sys/vfs/nfs/nfs_vnops.c
755
thread_t td = curthread;
sys/vfs/nfs/nfs_vnops.c
976
struct thread *td = curthread;
sys/vfs/ntfs/ntfs_subr.c
221
VG_EXT, curthread, &newvp);
sys/vfs/ntfs/ntfs_subr.c
949
curthread, &nvp);
sys/vfs/ntfs/ntfs_vfsops.c
797
LK_EXCLUSIVE | LK_RETRY, 0, curthread, vpp);
sys/vfs/smbfs/smbfs_io.c
410
struct thread *td = curthread; /* XXX */
sys/vfs/smbfs/smbfs_io.c
539
struct thread *td = curthread; /* XXX */
sys/vfs/smbfs/smbfs_io.c
650
error = smb_proc_intr(curthread);
sys/vfs/smbfs/smbfs_node.c
348
smb_makescred(&scred, curthread, cred);
sys/vfs/smbfs/smbfs_vfsops.c
136
smb_makescred(&scred, curthread, cred);
sys/vfs/smbfs/smbfs_vfsops.c
237
smb_makescred(&scred, curthread, smp->sm_cred);
sys/vfs/smbfs/smbfs_vfsops.c
261
struct thread *td = curthread; /* XXX */
sys/vfs/smbfs/smbfs_vfsops.c
331
smb_makescred(&scred, curthread, cred);
sys/vfs/smbfs/smbfs_vnops.c
195
smb_makescred(&scred, curthread, ap->a_cred);
sys/vfs/smbfs/smbfs_vnops.c
226
smb_makescred(&scred, curthread, proc0.p_ucred);
sys/vfs/smbfs/smbfs_vnops.c
279
smb_makescred(&scred, curthread, proc0.p_ucred);
sys/vfs/smbfs/smbfs_vnops.c
320
smb_makescred(&scred, curthread, ap->a_cred);
sys/vfs/smbfs/smbfs_vnops.c
804
td = curthread; /* XXX */
sys/vfs/smbfs/smbfs_vnops.c
889
struct thread *td = curthread; /* XXX */
sys/vfs/tmpfs/tmpfs.h
299
(lockstatus(TMPFS_NODE_MTX(node), curthread) == LK_EXCLUSIVE )) \
sys/vfs/tmpfs/tmpfs.h
304
KKASSERT(lockstatus(TMPFS_NODE_MTX(node), curthread) == LK_EXCLUSIVE); \
sys/vfs/ufs/ffs_alloc.c
1975
struct thread *td = curthread;
sys/vfs/ufs/ffs_softdep.c
298
semap->holder = curthread;
sys/vfs/ufs/ffs_softdep.c
311
semap->holder = curthread;
sys/vfs/ufs/ffs_softdep.c
322
if (semap->value <= 0 || semap->holder != curthread)
sys/vfs/ufs/ffs_softdep.c
4717
struct thread *td = curthread; /* XXX */
sys/vfs/ufs/ffs_softdep.c
492
thread_t td = curthread;
sys/vm/swap_pager.c
1623
if (curthread != pagethread &&
sys/vm/swap_pager.c
1624
curthread != emergpager &&
sys/vm/vm_fault.c
1085
struct lwp *lp = curthread->td_lwp;
sys/vm/vm_fault.c
1316
if ((curthread->td_flags & TDF_NOFAULT) &&
sys/vm/vm_fault.c
1448
if (curthread->td_lwp)
sys/vm/vm_fault.c
1449
++curthread->td_lwp->lwp_ru.ru_minflt;
sys/vm/vm_fault.c
1487
if (curthread->td_lwp) {
sys/vm/vm_fault.c
1489
curthread->td_lwp->lwp_ru.ru_majflt++;
sys/vm/vm_fault.c
1491
curthread->td_lwp->lwp_ru.ru_minflt++;
sys/vm/vm_fault.c
1658
if (curthread->td_lwp) {
sys/vm/vm_fault.c
1660
curthread->td_lwp->lwp_ru.ru_majflt++;
sys/vm/vm_fault.c
1662
curthread->td_lwp->lwp_ru.ru_minflt++;
sys/vm/vm_fault.c
1875
if (curthread->td_lwp && curthread->td_lwp->lwp_vmspace &&
sys/vm/vm_fault.c
1876
pmap_emulate_ad_bits(&curthread->td_lwp->lwp_vmspace->vm_pmap)) {
sys/vm/vm_fault.c
1934
(curthread->td_flags & TDF_NOFAULT) == 0) {
sys/vm/vm_fault.c
1938
td = curthread;
sys/vm/vm_fault.c
2048
(curthread->td_flags & TDF_NOFAULT) == 0) {
sys/vm/vm_fault.c
2052
td = curthread;
sys/vm/vm_fault.c
2225
curthread,
sys/vm/vm_fault.c
2226
curthread->td_comm);
sys/vm/vm_fault.c
2949
lp = curthread->td_lwp;
sys/vm/vm_fault.c
3156
if (curthread->td_lwp)
sys/vm/vm_fault.c
3157
++curthread->td_lwp->lwp_ru.ru_minflt;
sys/vm/vm_fault.c
3198
if (curthread->td_lwp)
sys/vm/vm_fault.c
3199
++curthread->td_lwp->lwp_ru.ru_minflt;
sys/vm/vm_fault.c
3240
lp = curthread->td_lwp;
sys/vm/vm_fault.c
3337
if (curthread->td_lwp)
sys/vm/vm_fault.c
3338
++curthread->td_lwp->lwp_ru.ru_minflt;
sys/vm/vm_fault.c
3389
if (curthread->td_lwp)
sys/vm/vm_fault.c
3390
++curthread->td_lwp->lwp_ru.ru_minflt;
sys/vm/vm_fault.c
434
td = curthread;
sys/vm/vm_fault.c
912
(curthread->td_proc ? curthread->td_proc->p_pid : -1),
sys/vm/vm_fault.c
913
(curthread->td_lwp ? curthread->td_lwp->lwp_tid : -1),
sys/vm/vm_fault.c
914
curthread->td_comm,
sys/vm/vm_fault.c
996
if (curthread->td_lwp && curthread->td_lwp->lwp_vmspace &&
sys/vm/vm_fault.c
997
pmap_emulate_ad_bits(&curthread->td_lwp->lwp_vmspace->vm_pmap)) {
sys/vm/vm_map.c
1664
aux_info = curthread->td_lwp;
sys/vm/vm_map.c
4119
lp = curthread->td_lwp;
sys/vm/vm_map.c
4120
p = curthread->td_proc;
sys/vm/vm_map.c
4447
thread_t td = curthread;
sys/vm/vm_map.c
4543
if (curthread->td_lwp && curthread->td_lwp->lwp_vmspace &&
sys/vm/vm_map.c
4544
pmap_emulate_ad_bits(&curthread->td_lwp->lwp_vmspace->vm_pmap)) {
sys/vm/vm_map.c
4575
if (curthread->td_flags & TDF_NOFAULT) {
sys/vm/vm_mmap.c
1049
struct thread *td = curthread;
sys/vm/vm_mmap.c
1114
struct thread *td = curthread;
sys/vm/vm_mmap.c
1174
struct thread *td = curthread;
sys/vm/vm_mmap.c
1225
struct thread *td = curthread;
sys/vm/vm_mmap.c
130
struct thread *td = curthread;
sys/vm/vm_mmap.c
998
struct thread *td = curthread;
sys/vm/vm_object.c
176
(curthread->td_proc ? curthread->td_proc->p_pid : -1),
sys/vm/vm_object.c
178
curthread->td_comm);
sys/vm/vm_object.c
183
if (strcmp(curthread->td_comm, "sshd") == 0) {
sys/vm/vm_object.c
185
(curthread->td_proc ? curthread->td_proc->p_pid : -1),
sys/vm/vm_page.c
2583
if (curthread->td_flags & TDF_SYSTHREAD)
sys/vm/vm_page.c
2622
if (curthread->td_preempted) {
sys/vm/vm_page.c
2936
if (curthread == pagethread ||
sys/vm/vm_page.c
2937
curthread == emergpager) {
sys/vm/vm_page.c
2962
nice = curthread->td_proc ? curthread->td_proc->p_nice : 0;
sys/vm/vm_page.c
3006
nice = curthread->td_proc ? curthread->td_proc->p_nice : 0;
sys/vm/vm_page.c
3025
td = curthread;
sys/vm/vm_pageout.c
1415
isep = (curthread == emergpager);
sys/vm/vm_pageout.c
1680
isep = (curthread == emergpager);
sys/vm/vm_pageout.c
2219
curthread->td_flags |= TDF_SYSTHREAD;
sys/vm/vm_pageout.c
2267
if (curthread == emergpager) {
sys/vm/vm_pageout.c
2804
if (vm_paging_start(0) && curthread != pagethread) {
sys/vm/vm_pageout.c
817
isep = (curthread == emergpager);
sys/vm/vm_swap.c
196
struct thread *td = curthread;
sys/vm/vm_swapcache.c
189
curthread->td_flags |= TDF_SYSTHREAD;
sys/vm/vm_vmspace.c
257
lp = curthread->td_lwp;
sys/vm/vm_vmspace.c
289
bcopy(&curthread->td_tls, &vklp->save_vextframe.vx_tls,
sys/vm/vm_vmspace.c
294
&curthread->td_tls,
sys/vm/vm_vmspace.c
300
error = cpu_sanitize_tls(&curthread->td_tls);
sys/vm/vm_vmspace.c
304
bcopy(&vklp->save_vextframe.vx_tls, &curthread->td_tls,
sys/vm/vm_vmspace.c
526
lp = curthread->td_lwp;
sys/vm/vm_vmspace.c
716
struct lwp *lp = curthread->td_lwp;
sys/vm/vm_vmspace.c
884
bcopy(&vklp->save_vextframe.vx_tls, &curthread->td_tls,
sys/vm/vnode_pager.c
824
lockstatus(&vp->v_lock, curthread));
tools/tools/netrate/pktgen/pktgen.c
588
KKASSERT(&curthread->td_msgport == netisr_cpuport(pb->pb_cpuid));
tools/tools/netrate/pktgen/pktgen.c
622
if (&curthread->td_msgport != netisr_cpuport(pb->pb_cpuid)) {
usr.sbin/makefs/hammer2/hammer2_admin.c
73
struct thread *curthread = &dummy_td;
usr.sbin/makefs/hammer2/hammer2_compat.h
145
extern struct thread *curthread;
usr.sbin/makefs/hammer2/hammer2_io.c
86
dio->debug_td[i] = curthread;
usr.sbin/makefs/hammer2/hammer2_ioctl.c
219
fp = holdfp(curthread, recl->fd, -1);
usr.sbin/makefs/hammer2/hammer2_subr.c
425
thread_t td = curthread;
usr.sbin/makefs/hammer2/hammer2_subr.c
432
if (CURSIG_NOBLOCK(curthread->td_lwp) != 0)
usr.sbin/makefs/hammer2/hammer2_vfsops.c
2958
pcatch = curthread->td_proc ? PCATCH : 0;
usr.sbin/makefs/hammer2/hammer2_vnops.c
2255
auio.uio_td = curthread;