Symbol: thread
lib/libc/thread-stub/thread-stub.c
100
if (thread == pthread_self())
lib/libc/thread-stub/thread-stub.c
106
__libc_thr_detach_stub(pthread_t thread)
lib/libc/thread-stub/thread-stub.c
109
if (thread == pthread_self())
lib/libc/thread-stub/thread-stub.c
97
__libc_thr_join_stub(pthread_t thread, void **valptr)
lib/libpthread/compat/compat_pthread_setname_np.c
43
__compat_pthread_setname_np(pthread_t thread, const char *name, void *arg)
lib/libpthread/compat/compat_pthread_setname_np.c
45
return __pthread_setname_np120(thread, name, arg);
lib/libpthread/pthread.c
399
pthread_create(pthread_t *thread, const pthread_attr_t *attr,
lib/libpthread/pthread.c
413
return __libc_thr_create_stub(thread, attr, startfunc, arg);
lib/libpthread/pthread.c
567
*thread = newthread;
lib/libpthread/pthread.c
610
pthread_suspend_np(pthread_t thread)
lib/libpthread/pthread.c
615
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread.c
618
if (self == thread) {
lib/libpthread/pthread.c
621
if (pthread__find(thread) != 0)
lib/libpthread/pthread.c
623
if (_lwp_suspend(thread->pt_lid) == 0)
lib/libpthread/pthread.c
629
pthread_resume_np(pthread_t thread)
lib/libpthread/pthread.c
633
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread.c
635
if (pthread__find(thread) != 0)
lib/libpthread/pthread.c
637
if (_lwp_continue(thread->pt_lid) == 0)
lib/libpthread/pthread.c
700
pthread_join(pthread_t thread, void **valptr)
lib/libpthread/pthread.c
705
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread.c
709
if (pthread__find(thread) != 0)
lib/libpthread/pthread.c
712
if (thread == self)
lib/libpthread/pthread.c
718
if (_lwp_wait(thread->pt_lid, NULL) == 0)
lib/libpthread/pthread.c
728
pthread_mutex_lock(&thread->pt_lock);
lib/libpthread/pthread.c
729
if (thread->pt_state != PT_STATE_ZOMBIE) {
lib/libpthread/pthread.c
734
*valptr = thread->pt_exitval;
lib/libpthread/pthread.c
737
pthread__reap(thread);
lib/libpthread/pthread.c
742
pthread__reap(pthread_t thread)
lib/libpthread/pthread.c
746
name = thread->pt_name;
lib/libpthread/pthread.c
747
thread->pt_name = NULL;
lib/libpthread/pthread.c
748
thread->pt_state = PT_STATE_DEAD;
lib/libpthread/pthread.c
749
pthread_mutex_unlock(&thread->pt_lock);
lib/libpthread/pthread.c
752
PTQ_INSERT_HEAD(&pthread__deadqueue, thread, pt_deadq);
lib/libpthread/pthread.c
778
pthread_detach(pthread_t thread)
lib/libpthread/pthread.c
783
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread.c
785
if (pthread__find(thread) != 0)
lib/libpthread/pthread.c
788
pthread_mutex_lock(&thread->pt_lock);
lib/libpthread/pthread.c
789
if ((thread->pt_flags & PT_FLAG_DETACHED) != 0) {
lib/libpthread/pthread.c
792
error = _lwp_detach(thread->pt_lid);
lib/libpthread/pthread.c
794
thread->pt_flags |= PT_FLAG_DETACHED;
lib/libpthread/pthread.c
798
if (thread->pt_state == PT_STATE_ZOMBIE) {
lib/libpthread/pthread.c
800
pthread__reap(thread);
lib/libpthread/pthread.c
802
pthread_mutex_unlock(&thread->pt_lock);
lib/libpthread/pthread.c
808
pthread_getname_np(pthread_t thread, char *name, size_t len)
lib/libpthread/pthread.c
812
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread.c
814
if (pthread__find(thread) != 0)
lib/libpthread/pthread.c
817
pthread_mutex_lock(&thread->pt_lock);
lib/libpthread/pthread.c
818
if (thread->pt_name == NULL)
lib/libpthread/pthread.c
821
strlcpy(name, thread->pt_name, len);
lib/libpthread/pthread.c
822
pthread_mutex_unlock(&thread->pt_lock);
lib/libpthread/pthread.c
829
pthread_setname_np(pthread_t thread, const char *name, void *arg)
lib/libpthread/pthread.c
835
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread.c
837
if (pthread__find(thread) != 0)
lib/libpthread/pthread.c
848
pthread_mutex_lock(&thread->pt_lock);
lib/libpthread/pthread.c
849
oldname = thread->pt_name;
lib/libpthread/pthread.c
850
thread->pt_name = cp;
lib/libpthread/pthread.c
851
(void)_lwp_setname(thread->pt_lid, cp);
lib/libpthread/pthread.c
852
pthread_mutex_unlock(&thread->pt_lock);
lib/libpthread/pthread.c
872
pthread_cancel(pthread_t thread)
lib/libpthread/pthread.c
878
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread.c
880
if (pthread__find(thread) != 0)
lib/libpthread/pthread.c
890
old = atomic_load_relaxed(&thread->pt_cancel);
lib/libpthread/pthread.c
898
&thread->pt_cancel, &old, new,
lib/libpthread/pthread.c
902
_lwp_wakeup(thread->pt_lid);
lib/libpthread/pthread_attr.c
109
pthread_attr_get_np(pthread_t thread, pthread_attr_t *attr)
lib/libpthread/pthread_attr.c
120
attr->pta_flags = thread->pt_flags &
lib/libpthread/pthread_attr.c
123
p->ptap_namearg = thread->pt_name;
lib/libpthread/pthread_attr.c
124
p->ptap_stackaddr = thread->pt_stack.ss_sp;
lib/libpthread/pthread_attr.c
125
p->ptap_stacksize = thread->pt_stack.ss_size;
lib/libpthread/pthread_attr.c
126
p->ptap_guardsize = thread->pt_guardsize;
lib/libpthread/pthread_attr.c
127
return pthread_getschedparam(thread, &p->ptap_policy, &p->ptap_sp);
lib/libpthread/pthread_attr.c
533
pthread_getattr_np(pthread_t thread, pthread_attr_t *attr)
lib/libpthread/pthread_attr.c
539
if ((error = pthread_attr_get_np(thread, attr)) != 0) {
lib/libpthread/pthread_getcpuclockid.c
47
pthread_getcpuclockid(pthread_t thread, clockid_t *clock_id)
lib/libpthread/pthread_getcpuclockid.c
52
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread_getcpuclockid.c
55
if (clock_getcpuclockid2(P_LWPID, (id_t)thread->pt_lid, clock_id) == -1)
lib/libpthread/pthread_misc.c
103
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread_misc.c
105
if (pthread__find(thread) != 0)
lib/libpthread/pthread_misc.c
108
if (_sched_getaffinity(getpid(), thread->pt_lid, size, cpuset) < 0)
lib/libpthread/pthread_misc.c
115
pthread_setaffinity_np(pthread_t thread, size_t size, cpuset_t *cpuset)
lib/libpthread/pthread_misc.c
119
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread_misc.c
121
if (pthread__find(thread) != 0)
lib/libpthread/pthread_misc.c
124
if (_sched_setaffinity(getpid(), thread->pt_lid, size, cpuset) < 0)
lib/libpthread/pthread_misc.c
131
pthread_setschedprio(pthread_t thread, int prio)
lib/libpthread/pthread_misc.c
136
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread_misc.c
138
if (pthread__find(thread) != 0)
lib/libpthread/pthread_misc.c
142
if (_sched_setparam(getpid(), thread->pt_lid, SCHED_NONE, &sp) < 0)
lib/libpthread/pthread_misc.c
149
pthread_kill(pthread_t thread, int sig)
lib/libpthread/pthread_misc.c
153
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread_misc.c
157
if (pthread__find(thread) != 0)
lib/libpthread/pthread_misc.c
159
if (_lwp_kill(thread->pt_lid, sig))
lib/libpthread/pthread_misc.c
64
pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param)
lib/libpthread/pthread_misc.c
68
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread_misc.c
70
if (pthread__find(thread) != 0)
lib/libpthread/pthread_misc.c
73
if (_sched_getparam(getpid(), thread->pt_lid, policy, param) < 0)
lib/libpthread/pthread_misc.c
80
pthread_setschedparam(pthread_t thread, int policy,
lib/libpthread/pthread_misc.c
86
thread->pt_magic == PT_MAGIC);
lib/libpthread/pthread_misc.c
88
if (pthread__find(thread) != 0)
lib/libpthread/pthread_misc.c
92
if (_sched_setparam(getpid(), thread->pt_lid, policy, &sp) < 0)
lib/libpthread/pthread_misc.c
99
pthread_getaffinity_np(pthread_t thread, size_t size, cpuset_t *cpuset)
lib/libpthread/pthread_mutex.c
251
pthread_t thread;
lib/libpthread/pthread_mutex.c
255
thread = (pthread_t)MUTEX_OWNER(owner);
lib/libpthread/pthread_mutex.c
256
if (thread == NULL)
lib/libpthread/pthread_mutex.c
258
if (thread->pt_lwpctl->lc_curcpu == LWPCTL_CPU_NONE)
lib/libpthread/pthread_rwlock.c
141
pthread_t thread;
lib/libpthread/pthread_rwlock.c
147
thread = (pthread_t)(owner & RW_THREAD);
lib/libpthread/pthread_rwlock.c
148
if (__predict_false(thread == NULL) ||
lib/libpthread/pthread_rwlock.c
149
thread->pt_lwpctl->lc_curcpu == LWPCTL_CPU_NONE)
lib/libpthread/pthread_rwlock.c
448
pthread_t self, thread;
lib/libpthread/pthread_rwlock.c
514
if ((thread = PTQ_FIRST(&ptr->ptr_wblocked)) != NULL) {
lib/libpthread/pthread_rwlock.c
515
_DIAGASSERT(((uintptr_t)thread & RW_FLAGMASK) == 0);
lib/libpthread/pthread_rwlock.c
516
new = (uintptr_t)thread | RW_WRITE_LOCKED;
lib/libpthread/pthread_rwlock.c
518
if (PTQ_NEXT(thread, pt_sleep) != NULL)
lib/libpthread/pthread_rwlock.c
533
thread->pt_rwlocked = _RW_LOCKED;
lib/libpthread/pthread_rwlock.c
538
PTQ_FOREACH(thread, &ptr->ptr_rblocked, pt_sleep) {
lib/libpthread/pthread_rwlock.c
545
if (thread->pt_sleepobj == NULL)
lib/libpthread/pthread_rwlock.c
549
thread->pt_rwlocked = _RW_LOCKED;
lib/librumpuser/rumpfiber.c
1018
struct thread *thread;
lib/librumpuser/rumpfiber.c
102
TAILQ_HEAD(thread_list, thread);
lib/librumpuser/rumpfiber.c
1026
thread = get_current();
lib/librumpuser/rumpfiber.c
1027
thread->lwp = l;
lib/librumpuser/rumpfiber.c
1030
thread = get_current();
lib/librumpuser/rumpfiber.c
1031
assert(thread->lwp == l);
lib/librumpuser/rumpfiber.c
1032
thread->lwp = NULL;
lib/librumpuser/rumpfiber.c
106
static struct thread *current_thread = NULL;
lib/librumpuser/rumpfiber.c
120
static struct thread *
lib/librumpuser/rumpfiber.c
141
struct thread *prev, *next, *thread, *tmp;
lib/librumpuser/rumpfiber.c
151
TAILQ_FOREACH_SAFE(thread, &thread_list, thread_list, tmp) {
lib/librumpuser/rumpfiber.c
152
if (!is_runnable(thread) && thread->wakeup_time >= 0) {
lib/librumpuser/rumpfiber.c
153
if (thread->wakeup_time <= tm) {
lib/librumpuser/rumpfiber.c
154
thread->flags |= THREAD_TIMEDOUT;
lib/librumpuser/rumpfiber.c
155
wake(thread);
lib/librumpuser/rumpfiber.c
156
} else if (thread->wakeup_time < wakeup)
lib/librumpuser/rumpfiber.c
157
wakeup = thread->wakeup_time;
lib/librumpuser/rumpfiber.c
159
if (is_runnable(thread)) {
lib/librumpuser/rumpfiber.c
160
next = thread;
lib/librumpuser/rumpfiber.c
162
TAILQ_REMOVE(&thread_list, thread, thread_list);
lib/librumpuser/rumpfiber.c
163
TAILQ_INSERT_TAIL(&thread_list, thread, thread_list);
lib/librumpuser/rumpfiber.c
181
TAILQ_FOREACH_SAFE(thread, &exited_threads, thread_list, tmp) {
lib/librumpuser/rumpfiber.c
182
if (thread != prev) {
lib/librumpuser/rumpfiber.c
183
TAILQ_REMOVE(&exited_threads, thread, thread_list);
lib/librumpuser/rumpfiber.c
184
if ((thread->flags & THREAD_EXTSTACK) == 0)
lib/librumpuser/rumpfiber.c
185
munmap(thread->ctx.uc_stack.ss_sp, STACKSIZE);
lib/librumpuser/rumpfiber.c
186
free(thread->name);
lib/librumpuser/rumpfiber.c
187
free(thread);
lib/librumpuser/rumpfiber.c
207
struct thread *
lib/librumpuser/rumpfiber.c
211
struct thread *thread = calloc(1, sizeof(struct thread));
lib/librumpuser/rumpfiber.c
213
if (!thread) {
lib/librumpuser/rumpfiber.c
222
free(thread);
lib/librumpuser/rumpfiber.c
227
thread->flags = THREAD_EXTSTACK;
lib/librumpuser/rumpfiber.c
229
create_ctx(&thread->ctx, stack, stack_size, f, data);
lib/librumpuser/rumpfiber.c
231
thread->name = strdup(name);
lib/librumpuser/rumpfiber.c
232
thread->cookie = cookie;
lib/librumpuser/rumpfiber.c
235
thread->wakeup_time = -1;
lib/librumpuser/rumpfiber.c
236
thread->lwp = NULL;
lib/librumpuser/rumpfiber.c
237
set_runnable(thread);
lib/librumpuser/rumpfiber.c
238
TAILQ_INSERT_TAIL(&thread_list, thread, thread_list);
lib/librumpuser/rumpfiber.c
240
return thread;
lib/librumpuser/rumpfiber.c
244
switch_threads(struct thread *prev, struct thread *next)
lib/librumpuser/rumpfiber.c
259
struct thread *jw_thread;
lib/librumpuser/rumpfiber.c
260
struct thread *jw_wanted;
lib/librumpuser/rumpfiber.c
268
struct thread *thread = get_current();
lib/librumpuser/rumpfiber.c
272
while (thread->flags & THREAD_MUSTJOIN) {
lib/librumpuser/rumpfiber.c
273
thread->flags |= THREAD_JOINED;
lib/librumpuser/rumpfiber.c
277
if (jw_iter->jw_wanted == thread) {
lib/librumpuser/rumpfiber.c
282
block(thread);
lib/librumpuser/rumpfiber.c
287
TAILQ_REMOVE(&thread_list, thread, thread_list);
lib/librumpuser/rumpfiber.c
288
clear_runnable(thread);
lib/librumpuser/rumpfiber.c
290
TAILQ_INSERT_HEAD(&exited_threads, thread, thread_list);
lib/librumpuser/rumpfiber.c
300
join_thread(struct thread *joinable)
lib/librumpuser/rumpfiber.c
303
struct thread *thread = get_current();
lib/librumpuser/rumpfiber.c
310
jw.jw_thread = thread;
lib/librumpuser/rumpfiber.c
313
block(thread);
lib/librumpuser/rumpfiber.c
327
struct thread *thread = get_current();
lib/librumpuser/rumpfiber.c
329
thread->wakeup_time = now() + millisecs;
lib/librumpuser/rumpfiber.c
330
clear_runnable(thread);
lib/librumpuser/rumpfiber.c
336
struct thread *thread = get_current();
lib/librumpuser/rumpfiber.c
338
thread->wakeup_time = millisecs;
lib/librumpuser/rumpfiber.c
339
clear_runnable(thread);
lib/librumpuser/rumpfiber.c
346
struct thread *thread = get_current();
lib/librumpuser/rumpfiber.c
353
thread->wakeup_time = now() + (millisecs - real_now);
lib/librumpuser/rumpfiber.c
355
clear_runnable(thread);
lib/librumpuser/rumpfiber.c
358
rv = !!(thread->flags & THREAD_TIMEDOUT);
lib/librumpuser/rumpfiber.c
359
thread->flags &= ~THREAD_TIMEDOUT;
lib/librumpuser/rumpfiber.c
363
void wake(struct thread *thread)
lib/librumpuser/rumpfiber.c
366
thread->wakeup_time = -1;
lib/librumpuser/rumpfiber.c
367
set_runnable(thread);
lib/librumpuser/rumpfiber.c
370
void block(struct thread *thread)
lib/librumpuser/rumpfiber.c
373
thread->wakeup_time = -1;
lib/librumpuser/rumpfiber.c
374
clear_runnable(thread);
lib/librumpuser/rumpfiber.c
377
int is_runnable(struct thread *thread)
lib/librumpuser/rumpfiber.c
380
return thread->flags & RUNNABLE_FLAG;
lib/librumpuser/rumpfiber.c
383
void set_runnable(struct thread *thread)
lib/librumpuser/rumpfiber.c
386
thread->flags |= RUNNABLE_FLAG;
lib/librumpuser/rumpfiber.c
389
void clear_runnable(struct thread *thread)
lib/librumpuser/rumpfiber.c
392
thread->flags &= ~RUNNABLE_FLAG;
lib/librumpuser/rumpfiber.c
398
struct thread *thread = calloc(1, sizeof(struct thread));
lib/librumpuser/rumpfiber.c
400
if (!thread) {
lib/librumpuser/rumpfiber.c
404
thread->name = strdup("init");
lib/librumpuser/rumpfiber.c
405
thread->flags = 0;
lib/librumpuser/rumpfiber.c
406
thread->wakeup_time = -1;
lib/librumpuser/rumpfiber.c
407
thread->lwp = NULL;
lib/librumpuser/rumpfiber.c
408
set_runnable(thread);
lib/librumpuser/rumpfiber.c
409
TAILQ_INSERT_TAIL(&thread_list, thread, thread_list);
lib/librumpuser/rumpfiber.c
410
current_thread = thread;
lib/librumpuser/rumpfiber.c
420
struct thread *
lib/librumpuser/rumpfiber.c
590
struct thread *who;
lib/librumpuser/rumpfiber.c
643
struct thread *thr;
lib/librumpuser/rumpfiber.c
95
static void join_thread(struct thread *);
lib/librumpuser/rumpfiber.c
96
static void switch_threads(struct thread *prev, struct thread *next);
lib/librumpuser/rumpfiber.c
97
static struct thread *get_current(void);
lib/librumpuser/rumpfiber.h
41
TAILQ_ENTRY(thread) thread_list;
lib/librumpuser/rumpfiber.h
57
void wake(struct thread *thread);
lib/librumpuser/rumpfiber.h
58
void block(struct thread *thread);
lib/librumpuser/rumpfiber.h
59
struct thread *init_mainthread(void *);
lib/librumpuser/rumpfiber.h
63
struct thread* create_thread(const char *name, void *cookie,
lib/librumpuser/rumpfiber.h
66
int is_runnable(struct thread *);
lib/librumpuser/rumpfiber.h
67
void set_runnable(struct thread *);
lib/librumpuser/rumpfiber.h
68
void clear_runnable(struct thread *);
regress/sys/kern/nameibench/nameibench.c
178
if (pthread_create(&pt, NULL, thread, (void *)(uintptr_t)i)) {
regress/sys/kern/softint1/softint1.c
40
void *thread(void *);
regress/sys/kern/softint1/softint1.c
62
pthread_create(&thr, NULL, thread, NULL);
sys/arch/amd64/include/db_machdep.h
132
#define db_thread_fp_used(thread) ((thread)->pcb->ims.ifps != 0)
sys/arch/amiga/dev/aucc.c
705
aucc_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/arch/amiga/dev/aucc.c
710
*thread = &sc->sc_lock;
sys/arch/amiga/dev/repulse.c
525
rep_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/arch/amiga/dev/repulse.c
530
*thread = &sc->sc_lock;
sys/arch/amiga/dev/toccata.c
457
toccata_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/arch/amiga/dev/toccata.c
462
*thread = &sc->sc_lock;
sys/arch/amiga/dev/zz9k_ax.c
119
static void zzax_get_locks(void *hdl, kmutex_t **intr, kmutex_t **thread);
sys/arch/amiga/dev/zz9k_ax.c
519
zzax_get_locks(void *hdl, kmutex_t **intr, kmutex_t **thread)
sys/arch/amiga/dev/zz9k_ax.c
523
*thread = &sc->sc_lock;
sys/arch/arm/broadcom/bcm2835_vcaudio.c
830
vcaudio_get_locks(void *priv, kmutex_t **intr, kmutex_t **thread)
sys/arch/arm/broadcom/bcm2835_vcaudio.c
835
*thread = &sc->sc_lock;
sys/arch/arm/imx/imx23_digfilt.c
682
imx23_digfilt_get_locks(void *priv, kmutex_t **intr, kmutex_t **thread)
sys/arch/arm/imx/imx23_digfilt.c
687
*thread = &sc->sc_lock;
sys/arch/arm/iomd/vidcaudio.c
472
vidcaudio_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/arch/arm/iomd/vidcaudio.c
477
*thread = &sc->sc_lock;
sys/arch/arm/rockchip/rk_i2s.c
344
rk_i2s_get_locks(void *priv, kmutex_t **intr, kmutex_t **thread)
sys/arch/arm/rockchip/rk_i2s.c
349
*thread = &sc->sc_lock;
sys/arch/arm/sunxi/sunxi_codec.c
452
sunxi_codec_get_locks(void *priv, kmutex_t **intr, kmutex_t **thread)
sys/arch/arm/sunxi/sunxi_codec.c
457
*thread = &sc->sc_lock;
sys/arch/arm/sunxi/sunxi_i2s.c
566
sunxi_i2s_get_locks(void *priv, kmutex_t **intr, kmutex_t **thread)
sys/arch/arm/sunxi/sunxi_i2s.c
571
*thread = &sc->sc_lock;
sys/arch/arm/xscale/pxa2x0_ac97.c
713
acu_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/arch/arm/xscale/pxa2x0_ac97.c
718
*thread = &sc->sc_lock;
sys/arch/dreamcast/dev/g2/aica.c
689
aica_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/arch/dreamcast/dev/g2/aica.c
695
*thread = &sc->sc_lock;
sys/arch/evbarm/mini2440/audio_mini2440.c
400
uda_ssio_get_locks(void *handle, kmutex_t **intr, kmutex_t **thread)
sys/arch/evbarm/mini2440/audio_mini2440.c
407
*thread = &sc->sc_lock;
sys/arch/evbppc/nintendo/dev/bwdsp.c
322
bwdsp_get_locks(void *priv, kmutex_t **intr, kmutex_t **thread)
sys/arch/evbppc/nintendo/dev/bwdsp.c
327
*thread = &sc->sc_lock;
sys/arch/hpcmips/vr/vraiu.c
500
vraiu_get_locks(void *self, kmutex_t **intr, kmutex_t **thread)
sys/arch/hpcmips/vr/vraiu.c
508
*thread = &sc->sc_lock;
sys/arch/hppa/gsc/harmony.c
980
harmony_get_locks(void *vsc, kmutex_t **intr, kmutex_t **thread)
sys/arch/hppa/gsc/harmony.c
986
*thread = &sc->sc_lock;
sys/arch/i386/include/db_machdep.h
131
#define db_thread_fp_used(thread) ((thread)->pcb->ims.ifps != 0)
sys/arch/ia64/ia64/interrupt.c
141
struct thread *thr = PCPU_GET(fpcurthread);
sys/arch/ia64/include/cpufunc.h
40
struct thread;
sys/arch/ia64/include/md_var.h
100
int unaligned_fixup(struct trapframe *, struct thread *);
sys/arch/ia64/include/md_var.h
68
struct thread;
sys/arch/ia64/include/md_var.h
80
int copyout_regstack(struct thread *, uint64_t *, uint64_t *);
sys/arch/ia64/include/md_var.h
85
void ia64_flush_dirty(struct thread *, struct _special *);
sys/arch/ia64/include/md_var.h
87
int ia64_highfp_drop(struct thread *);
sys/arch/ia64/include/md_var.h
88
int ia64_highfp_save(struct thread *);
sys/arch/luna68k/dev/psgpam.c
661
psgpam_get_locks(void *hdl, kmutex_t **intr, kmutex_t **thread)
sys/arch/luna68k/dev/psgpam.c
666
*thread = &sc->sc_thread_lock;
sys/arch/mac68k/obio/ascaudio.c
770
ascaudio_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/arch/mac68k/obio/ascaudio.c
777
*thread = &sc->sc_lock;
sys/arch/macppc/dev/awacs.c
1027
awacs_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/arch/macppc/dev/awacs.c
1032
*thread = &sc->sc_lock;
sys/arch/macppc/dev/snapper.c
1471
snapper_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/arch/macppc/dev/snapper.c
1476
*thread = &sc->sc_lock;
sys/arch/mips/rmi/rmixl_cpu.c
153
int thread = cf->cf_loc[CPUCORECF_THREAD];
sys/arch/mips/rmi/rmixl_cpu.c
162
&& (thread == CPUCORECF_THREAD_DEFAULT || thread == ca->ca_thread)
sys/arch/mips/rmi/rmixl_intr.c
955
uint32_t thread = (uint32_t)(cpuid & __BITS(1,0));
sys/arch/mips/rmi/rmixl_intr.c
964
r = (thread << RMIXL_PIC_IPIBASE_ID_THREAD_SHIFT)
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
692
mpcac97_get_locks(void *v, kmutex_t **intr, kmutex_t **thread)
sys/arch/powerpc/mpc5200/mpc5200_ac97.c
697
*thread = &sc->sc_lock;
sys/arch/sgimips/hpc/haltwo.c
753
haltwo_get_locks(void *v, kmutex_t **intr, kmutex_t **thread)
sys/arch/sgimips/hpc/haltwo.c
761
*thread = &sc->sc_lock;
sys/arch/sgimips/hpc/haud.c
1099
haud_get_locks(void *v, kmutex_t **intr, kmutex_t **thread)
sys/arch/sgimips/hpc/haud.c
1103
*thread = &sc->sc_lock;
sys/arch/sgimips/mace/mavb.c
797
mavb_get_locks(void *hdl, kmutex_t **intr, kmutex_t **thread)
sys/arch/sgimips/mace/mavb.c
802
*thread = &sc->sc_lock;
sys/arch/sh3/include/db_machdep.h
95
#define db_thread_fp_used(thread) ((thread)->pcb->ims.ifps != 0)
sys/arch/usermode/dev/vaudio.c
385
vaudio_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/arch/usermode/dev/vaudio.c
390
*thread = &sc->sc_lock;
sys/arch/x68k/dev/vs.c
640
vs_get_locks(void *hdl, kmutex_t **intr, kmutex_t **thread)
sys/arch/x68k/dev/vs.c
647
*thread = &sc->sc_lock;
sys/arch/zaurus/dev/zaudio.c
238
zaudio_get_locks(void *hdl, kmutex_t **intr, kmutex_t **thread)
sys/arch/zaurus/dev/zaudio.c
243
*thread = &sc->sc_lock;
sys/ddb/db_break.c
278
thread_t thread;
sys/ddb/db_break.c
282
(((thread = current_thread()) != NULL) &&
sys/ddb/db_break.c
283
(map == thread->task->map)));
sys/ddb/db_break.c
294
thread_t thread;
sys/ddb/db_break.c
303
((thread = current_thread()) != NULL))
sys/ddb/db_break.c
304
return thread->task->map;
sys/dev/audio/audio_dai.h
280
audio_dai_get_locks(audio_dai_tag_t dai, kmutex_t **intr, kmutex_t **thread)
sys/dev/audio/audio_dai.h
284
*thread = NULL;
sys/dev/audio/audio_dai.h
288
dai->dai_hw_if->get_locks(dai->dai_priv, intr, thread);
sys/dev/bluetooth/btsco.c
1010
btsco_get_locks(void *hdl, kmutex_t **intr, kmutex_t **thread)
sys/dev/bluetooth/btsco.c
1014
*thread = &sc->sc_lock;
sys/dev/fdt/ausoc.c
316
ausoc_get_locks(void *priv, kmutex_t **intr, kmutex_t **thread)
sys/dev/fdt/ausoc.c
320
return audio_dai_get_locks(link->link_cpu, intr, thread);
sys/dev/hdaudio/hdafg.c
4379
hdafg_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/dev/hdaudio/hdafg.c
4384
*thread = &ad->ad_sc->sc_lock;
sys/dev/ic/ad1848.c
1129
ad1848_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/ic/ad1848.c
1135
*thread = &sc->sc_lock;
sys/dev/ic/am7930.c
706
am7930_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/ic/am7930.c
712
*thread = &sc->sc_lock;
sys/dev/ic/arcofi.c
991
arcofi_get_locks(void *v, kmutex_t **intr, kmutex_t **thread)
sys/dev/ic/arcofi.c
996
*thread = &sc->sc_lock;
sys/dev/ic/interwave.c
1451
iw_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/ic/interwave.c
1457
*thread = &sc->sc_lock;
sys/dev/ic/isp_netbsd.c
1025
wakeup(&isp->isp_osinfo.thread);
sys/dev/ic/isp_netbsd.c
1053
while (isp->isp_osinfo.thread != NULL) {
sys/dev/ic/isp_netbsd.c
1133
tsleep(&isp->isp_osinfo.thread, PRIBIO, "ispf", slp * hz);
sys/dev/ic/isp_netbsd.c
1153
wakeup(&isp->isp_osinfo.thread);
sys/dev/ic/isp_netbsd.c
121
&isp->isp_osinfo.thread, "%s:fc_thrd",
sys/dev/ic/isp_netbsd.c
1251
isp->isp_osinfo.thread) {
sys/dev/ic/isp_netbsd.c
1469
if (isp->isp_osinfo.thread) {
sys/dev/ic/isp_netbsd.c
1479
if (isp->isp_osinfo.thread) {
sys/dev/ic/isp_netbsd.c
1480
wakeup(&isp->isp_osinfo.thread);
sys/dev/ic/isp_netbsd.c
558
isp->isp_osinfo.thread == NULL) {
sys/dev/ic/isp_netbsd.h
103
struct lwp * thread;
sys/dev/ic/pl041.c
215
aaci_get_locks(void *priv, kmutex_t **intr, kmutex_t **thread)
sys/dev/ic/pl041.c
220
*thread = &sc->sc_lock;
sys/dev/ic/tms320av110.c
327
tav_get_locks(void *hdl, kmutex_t **intr, kmutex_t **thread)
sys/dev/ic/tms320av110.c
333
*thread = &sc->sc_lock;
sys/dev/isa/aria.c
1540
aria_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/isa/aria.c
1546
*thread = &sc->sc_lock;
sys/dev/isa/ess.c
2194
ess_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/isa/ess.c
2200
*thread = &sc->sc_lock;
sys/dev/pad/pad.c
735
pad_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/dev/pad/pad.c
740
*thread = &sc->sc_lock;
sys/dev/pci/auich.c
1717
auich_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/auich.c
1723
*thread = &sc->sc_lock;
sys/dev/pci/auvia.c
978
auvia_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/auvia.c
984
*thread = &sc->sc_lock;
sys/dev/pci/bktr/bktr_core.c
1303
video_ioctl(bktr_ptr_t bktr, int unit, ioctl_cmd_t cmd, void *arg, struct thread* td)
sys/dev/pci/bktr/bktr_core.c
1929
tuner_ioctl(bktr_ptr_t bktr, int unit, ioctl_cmd_t cmd, void *arg, struct thread* td)
sys/dev/pci/cmpci.c
1635
cmpci_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/cmpci.c
1641
*thread = &sc->sc_lock;
sys/dev/pci/cs428x.c
333
cs428x_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/cs428x.c
339
*thread = &sc->sc_lock;
sys/dev/pci/eap.c
1690
eap_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/eap.c
1698
*thread = &sc->sc_lock;
sys/dev/pci/eso.c
1802
eso_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/eso.c
1808
*thread = &sc->sc_lock;
sys/dev/pci/fms.c
751
fms_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/fms.c
757
*thread = &sc->sc_lock;
sys/dev/pci/gcscaudio.c
1123
gcscaudio_get_locks(void *arg, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/gcscaudio.c
1130
*thread = &sc->sc_lock;
sys/dev/pci/neo.c
957
neo_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/neo.c
963
*thread = &sc->lock;
sys/dev/pci/sv.c
1365
sv_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/sv.c
1371
*thread = &sc->sc_lock;
sys/dev/pci/voyager/vac.c
529
vac_get_locks(void *priv, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/voyager/vac.c
534
*thread = &sc->sc_lock;
sys/dev/pci/yds.c
1737
yds_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/pci/yds.c
1743
*thread = &sc->sc_lock;
sys/dev/sbus/dbri.c
1954
dbri_get_locks(void *opaque, kmutex_t **intr, kmutex_t **thread)
sys/dev/sbus/dbri.c
1959
*thread = &sc->sc_lock;
sys/dev/usb/uaudio.c
3209
uaudio_get_locks(void *addr, kmutex_t **intr, kmutex_t **thread)
sys/dev/usb/uaudio.c
3215
*thread = &sc->sc_lock;
sys/dev/usb/umidi.c
644
umidi_get_locks(void *addr, kmutex_t **thread, kmutex_t **intr)
sys/dev/usb/umidi.c
650
*thread = &sc->sc_lock;
sys/fs/hfs/libhfs.c
1792
out_recdata->thread.reserved = be16tohp(&ptr);
sys/fs/hfs/libhfs.c
1793
out_recdata->thread.parent_cnid = be32tohp(&ptr);
sys/fs/hfs/libhfs.c
1796
&out_recdata->thread.name);
sys/fs/hfs/libhfs.h
478
hfs_thread_record_t thread;
sys/fs/nfs/client/nfs_clbio.c
1260
nfs_getcacheblk(struct vnode *vp, daddr_t bn, int size, struct thread *td)
sys/fs/nfs/client/nfs_clbio.c
1294
ncl_vinvalbuf(struct vnode *vp, int flags, struct thread *td, int intrflg)
sys/fs/nfs/client/nfs_clbio.c
1375
ncl_asyncio(struct nfsmount *nmp, struct buf *bp, struct ucred *cred, struct thread *td)
sys/fs/nfs/client/nfs_clbio.c
1564
ncl_doio(struct vnode *vp, struct buf *bp, struct ucred *cr, struct thread *td,
sys/fs/nfs/client/nfs_clbio.c
1821
ncl_meta_setsize(struct vnode *vp, struct ucred *cred, struct thread *td, u_quad_t nsize)
sys/fs/nfs/client/nfs_clbio.c
230
struct thread *td;
sys/fs/nfs/client/nfs_clbio.c
337
nfs_bioread_check_cons(struct vnode *vp, struct thread *td, struct ucred *cred)
sys/fs/nfs/client/nfs_clbio.c
409
struct thread *td;
sys/fs/nfs/client/nfs_clbio.c
67
struct thread *td);
sys/fs/nfs/client/nfs_clbio.c
710
struct thread *td = uiop->uio_td;
sys/fs/nfs/client/nfs_clbio.c
83
struct thread *td;
sys/fs/nfs/client/nfs_clbio.c
845
struct thread *td = uio->uio_td;
sys/fs/nfs/client/nfs_clkrpc.c
153
struct thread *td = curthread;
sys/fs/nfs/client/nfs_clkrpc.c
219
nfscbd_nfsd(struct thread *td, struct nfsd_nfscbd_args *args)
sys/fs/nfs/client/nfs_clnode.c
100
struct thread *td = curthread; /* XXX */
sys/fs/nfs/client/nfs_clnode.c
204
ncl_releasesillyrename(struct vnode *vp, struct thread *td)
sys/fs/nfs/client/nfs_clport.c
1202
nfscl_maperr(struct thread *td, int error, uid_t uid, gid_t gid)
sys/fs/nfs/client/nfs_clport.c
1304
nfssvc_nfscl(struct thread *td, struct nfssvc_args *uap)
sys/fs/nfs/client/nfs_clport.c
132
struct componentname *cnp, struct thread *td, struct nfsnode **npp,
sys/fs/nfs/client/nfs_clport.c
1374
extern int (*nfsd_call_nfscl)(struct thread *, struct nfssvc_args *);
sys/fs/nfs/client/nfs_clport.c
314
struct thread *td, struct nfsnode **npp)
sys/fs/nfs/client/nfs_clport.c
680
nfscl_getparent(struct thread *td)
sys/fs/nfs/client/nfs_clport.c
683
struct thread *ptd;
sys/fs/nfs/client/nfs_clport.c
704
struct thread *td;
sys/fs/nfs/client/nfs_clvfsops.c
115
struct thread *);
sys/fs/nfs/client/nfs_clvfsops.c
119
struct thread *, int, int, int);
sys/fs/nfs/client/nfs_clvfsops.c
1365
struct ucred *cred, struct thread *td, int nametimeo, int negnametimeo,
sys/fs/nfs/client/nfs_clvfsops.c
1647
struct thread *td;
sys/fs/nfs/client/nfs_clvfsops.c
1747
struct thread *td;
sys/fs/nfs/client/nfs_clvfsops.c
183
struct thread *, struct vnode **, struct mount *);
sys/fs/nfs/client/nfs_clvfsops.c
284
struct thread *td;
sys/fs/nfs/client/nfs_clvfsops.c
362
struct thread *td)
sys/fs/nfs/client/nfs_clvfsops.c
399
struct thread *td = curthread;
sys/fs/nfs/client/nfs_clvfsops.c
523
struct sockaddr_in *sin, struct nfs_args *args, struct thread *td,
sys/fs/nfs/client/nfs_clvfsops.c
562
const char *hostname, struct ucred *cred, struct thread *td)
sys/fs/nfs/client/nfs_clvfsops.c
879
struct thread *td;
sys/fs/nfs/client/nfs_clvnops.c
1042
struct thread *td = cnp->cn_thread;
sys/fs/nfs/client/nfs_clvnops.c
126
struct thread *);
sys/fs/nfs/client/nfs_clvnops.c
147
struct ucred *, struct thread *, struct nfsnode **);
sys/fs/nfs/client/nfs_clvnops.c
1724
int namelen, struct ucred *cred, struct thread *td)
sys/fs/nfs/client/nfs_clvnops.c
1911
int tnamelen, struct ucred *cred, struct thread *td)
sys/fs/nfs/client/nfs_clvnops.c
212
int namelen, struct ucred *cred, struct thread *td);
sys/fs/nfs/client/nfs_clvnops.c
215
char *tnameptr, int tnamelen, struct ucred *cred, struct thread *td);
sys/fs/nfs/client/nfs_clvnops.c
2270
struct thread *td)
sys/fs/nfs/client/nfs_clvnops.c
2330
struct thread *td)
sys/fs/nfs/client/nfs_clvnops.c
2452
struct thread *td, struct nfsnode **npp)
sys/fs/nfs/client/nfs_clvnops.c
2555
struct thread *td)
sys/fs/nfs/client/nfs_clvnops.c
2638
ncl_flush(struct vnode *vp, int waitfor, struct ucred *cred, struct thread *td,
sys/fs/nfs/client/nfs_clvnops.c
287
nfs34_access_otw(struct vnode *vp, int wmode, struct thread *td,
sys/fs/nfs/client/nfs_clvnops.c
2990
struct thread *td = curthread; /* XXX */
sys/fs/nfs/client/nfs_clvnops.c
3158
ncl_writebp(struct buf *bp, int force __unused, struct thread *td)
sys/fs/nfs/client/nfs_clvnops.c
3392
struct thread *td = curthread;
sys/fs/nfs/client/nfs_clvnops.c
812
struct thread *td = curthread; /* XXX */
sys/fs/nfs/client/nfs_clvnops.c
887
struct thread *td = curthread; /* XXX */
sys/fs/nfs/client/nfs_clvnops.c
999
struct thread *td)
sys/fs/nfs/common/krpc.h
8
struct thread;
sys/fs/nfs/common/krpc_subr.c
132
struct thread *td)
sys/fs/nfs/common/krpc_subr.c
189
struct mbuf **data, struct sockaddr **from_p, struct thread *td)
sys/fs/nfs/common/nfs_commonkrpc.c
1075
newnfs_set_sigmask(struct thread *td, sigset_t *oldset)
sys/fs/nfs/common/nfs_commonkrpc.c
1106
newnfs_restore_sigmask(struct thread *td, sigset_t *set)
sys/fs/nfs/common/nfs_commonkrpc.c
1118
newnfs_msleep(struct thread *td, void *ident, struct mtx *mtx, int priority, char *wmesg, int timo)
sys/fs/nfs/common/nfs_commonkrpc.c
1140
newnfs_sigintr(struct nfsmount *nmp, struct thread *td)
sys/fs/nfs/common/nfs_commonkrpc.c
1170
nfs_msg(struct thread *td, const char *server, const char *msg, int error)
sys/fs/nfs/common/nfs_commonkrpc.c
1185
nfs_down(struct nfsmount *nmp, struct thread *td, const char *msg,
sys/fs/nfs/common/nfs_commonkrpc.c
1210
nfs_up(struct nfsmount *nmp, struct thread *td, const char *msg,
sys/fs/nfs/common/nfs_commonkrpc.c
124
static void nfs_down(struct nfsmount *, struct thread *, const char *,
sys/fs/nfs/common/nfs_commonkrpc.c
126
static void nfs_up(struct nfsmount *, struct thread *, const char *,
sys/fs/nfs/common/nfs_commonkrpc.c
128
static int nfs_msg(struct thread *, const char *, const char *, int);
sys/fs/nfs/common/nfs_commonkrpc.c
177
struct thread *td = curthread;
sys/fs/nfs/common/nfs_commonkrpc.c
444
struct thread *nf_td;
sys/fs/nfs/common/nfs_commonkrpc.c
482
struct thread *td, struct ucred *cred, u_int32_t prog, u_int32_t vers,
sys/fs/nfs/common/nfs_commonport.c
136
static int nfssvc_call(struct thread *, struct nfssvc_args *, struct ucred *);
sys/fs/nfs/common/nfs_commonport.c
212
nfsrv_object_create(struct vnode *vp, struct thread *td)
sys/fs/nfs/common/nfs_commonport.c
311
struct ucred *cred, struct thread *p)
sys/fs/nfs/common/nfs_commonport.c
379
struct thread *td = curthread;
sys/fs/nfs/common/nfs_commonport.c
440
nfssvc_nfscommon(struct thread *td, struct nfssvc_args *uap)
sys/fs/nfs/common/nfs_commonport.c
450
nfssvc_call(struct thread *p, struct nfssvc_args *uap, struct ucred *cred)
sys/fs/nfs/common/nfs_commonport.c
59
struct thread *);
sys/fs/nfs/common/nfs_commonport.c
689
extern int (*nfsd_call_nfscommon)(struct thread *, struct nfssvc_args *);
sys/fs/nfs/common/nfs_fha.c
255
fha_hash_entry_add_thread(struct fha_hash_entry *fhe, SVCTHREAD *thread)
sys/fs/nfs/common/nfs_fha.c
259
thread->st_p2 = 0;
sys/fs/nfs/common/nfs_fha.c
260
LIST_INSERT_HEAD(&fhe->threads, thread, st_alink);
sys/fs/nfs/common/nfs_fha.c
265
fha_hash_entry_remove_thread(struct fha_hash_entry *fhe, SVCTHREAD *thread)
sys/fs/nfs/common/nfs_fha.c
269
KASSERT(thread->st_p2 == 0,
sys/fs/nfs/common/nfs_fha.c
270
("%d reqs on removed thread %p", thread->st_p2, thread));
sys/fs/nfs/common/nfs_fha.c
271
LIST_REMOVE(thread, st_alink);
sys/fs/nfs/common/nfs_fha.c
297
SVCTHREAD *thread, *min_thread = NULL;
sys/fs/nfs/common/nfs_fha.c
304
LIST_FOREACH(thread, &fhe->threads, st_alink) {
sys/fs/nfs/common/nfs_fha.c
305
req_count = thread->st_p2;
sys/fs/nfs/common/nfs_fha.c
311
"fha: %p(%d)w", thread, req_count);
sys/fs/nfs/common/nfs_fha.c
313
return (thread);
sys/fs/nfs/common/nfs_fha.c
321
offset2 = thread->st_p3;
sys/fs/nfs/common/nfs_fha.c
331
"fha: %p(%d)r", thread, req_count);
sys/fs/nfs/common/nfs_fha.c
333
return (thread);
sys/fs/nfs/common/nfs_fha.c
344
"fha: %p(%d)s off1 %llu off2 %llu", thread,
sys/fs/nfs/common/nfs_fha.c
349
min_thread = thread;
sys/fs/nfs/common/nfs_fha.c
359
thread = this_thread;
sys/fs/nfs/common/nfs_fha.c
362
"fha: %p(%d)t", thread, thread->st_p2);
sys/fs/nfs/common/nfs_fha.c
364
fha_hash_entry_add_thread(fhe, thread);
sys/fs/nfs/common/nfs_fha.c
370
thread = min_thread;
sys/fs/nfs/common/nfs_fha.c
373
return (thread);
sys/fs/nfs/common/nfs_fha.c
384
SVCTHREAD *thread;
sys/fs/nfs/common/nfs_fha.c
419
thread = fha_hash_entry_choose_thread(softc, fhe, &i, this_thread);
sys/fs/nfs/common/nfs_fha.c
420
KASSERT(thread, ("fha_assign: NULL thread!"));
sys/fs/nfs/common/nfs_fha.c
422
thread->st_p2++;
sys/fs/nfs/common/nfs_fha.c
423
thread->st_p3 = i.offset;
sys/fs/nfs/common/nfs_fha.c
429
mtx_lock(&thread->st_lock);
sys/fs/nfs/common/nfs_fha.c
432
return (thread);
sys/fs/nfs/common/nfs_fha.c
444
fha_nd_complete(SVCTHREAD *thread, struct svc_req *req)
sys/fs/nfs/common/nfs_fha.c
459
thread->st_p2--;
sys/fs/nfs/common/nfs_fha.c
460
KASSERT(thread->st_p2 >= 0, ("Negative request count %d on %p",
sys/fs/nfs/common/nfs_fha.c
461
thread->st_p2, thread));
sys/fs/nfs/common/nfs_fha.c
462
if (thread->st_p2 == 0) {
sys/fs/nfs/common/nfs_fha.c
463
fha_hash_entry_remove_thread(fhe, thread);
sys/fs/nfs/common/nfs_fha.c
477
SVCTHREAD *thread;
sys/fs/nfs/common/nfs_fha.c
516
LIST_FOREACH(thread, &fhe->threads, st_alink) {
sys/fs/nfs/common/nfs_fha.c
518
"reqs %d\n", thread,
sys/fs/nfs/common/nfs_fha.c
519
thread->st_p3, thread->st_p2);
sys/fs/nfs/common/nfs_lock.c
109
nfslock_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
sys/fs/nfs/common/nfs_lock.c
240
struct thread *td;
sys/fs/nfs/common/nfs_lock.c
359
nfslockdans(struct thread *td, struct lockd_ans *ansp)
sys/fs/nfs/common/nfs_lock.c
74
static int nfslockdans(struct thread *td, struct lockd_ans *ansp);
sys/fs/nfs/common/nfs_lock.c
88
nfslock_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
sys/fs/nfs/common/nfs_nfssvc.c
70
int (*nfsd_call_nfsserver)(struct thread *, struct nfssvc_args *) = NULL;
sys/fs/nfs/common/nfs_nfssvc.c
71
int (*nfsd_call_nfscommon)(struct thread *, struct nfssvc_args *) = NULL;
sys/fs/nfs/common/nfs_nfssvc.c
72
int (*nfsd_call_nfscl)(struct thread *, struct nfssvc_args *) = NULL;
sys/fs/nfs/common/nfs_nfssvc.c
73
int (*nfsd_call_nfsd)(struct thread *, struct nfssvc_args *) = NULL;
sys/fs/nfs/common/nfs_nfssvc.c
79
sys_nfssvc(struct thread *td, struct nfssvc_args *uap)
sys/fs/nfs/nlm/nlm_advlock.c
111
nlm_msg(struct thread *td, const char *server, const char *msg, int error)
sys/fs/nfs/nlm/nlm_advlock.c
131
nlm_down(struct nlm_feedback_arg *nf, struct thread *td,
sys/fs/nfs/nlm/nlm_advlock.c
153
nlm_up(struct nlm_feedback_arg *nf, struct thread *td,
sys/fs/nfs/nlm/nlm_advlock.c
177
struct thread *td = curthread;
sys/fs/nfs/nlm/nlm_advlock.c
200
struct thread *td = curthread;
sys/fs/nfs/nlm/nlm_advlock.c
404
nlm_set_creds_for_lock(struct thread *td, struct flock *fl)
sys/fs/nfs/nlm/nlm_advlock.c
456
struct thread *td = curthread;
sys/fs/nfs/nlm/nlm_advlock.c
493
struct thread *td = curthread;
sys/fs/nfs/nlm/nlm_prot_impl.c
1533
struct thread *td = curthread;
sys/fs/nfs/nlm/nlm_prot_impl.c
1707
sys_nlm_syscall(struct thread *td, struct nlm_syscall_args *uap)
sys/fs/nfs/nlm/nlm_prot_impl.c
804
struct thread *td;
sys/fs/nfs/server/nfs_nfsdkrpc.c
321
struct thread *td = curthread;
sys/fs/nfs/server/nfs_nfsdkrpc.c
477
nfsrvd_nfsd(struct thread *td, struct nfsd_nfsd_args *args)
sys/fs/nfs/server/nfs_nfsdport.c
1021
struct thread *p, char **pathcpp, int *lenp)
sys/fs/nfs/server/nfs_nfsdport.c
1063
struct thread *p, struct nfsexstuff *exp)
sys/fs/nfs/server/nfs_nfsdport.c
1091
struct thread *p, struct nfsexstuff *exp)
sys/fs/nfs/server/nfs_nfsdport.c
1132
u_int32_t ndstat, u_int32_t ndflag, struct ucred *cred, struct thread *p)
sys/fs/nfs/server/nfs_nfsdport.c
1242
struct thread *p, struct nfsexstuff *exp)
sys/fs/nfs/server/nfs_nfsdport.c
1284
struct thread *td)
sys/fs/nfs/server/nfs_nfsdport.c
1417
NFSACL_T *aclp, nfsattrbit_t *attrbitp, struct ucred *cred, struct thread *p,
sys/fs/nfs/server/nfs_nfsdport.c
1513
struct ucred *cred, struct thread *p)
sys/fs/nfs/server/nfs_nfsdport.c
1535
struct ucred *cred, struct thread *p, int isdgram, int reterr,
sys/fs/nfs/server/nfs_nfsdport.c
1573
struct vnode *vp, struct thread *p, struct nfsexstuff *exp)
sys/fs/nfs/server/nfs_nfsdport.c
1817
struct vnode *vp, struct thread *p, struct nfsexstuff *exp)
sys/fs/nfs/server/nfs_nfsdport.c
190
struct thread *p, int vpislocked)
sys/fs/nfs/server/nfs_nfsdport.c
217
nfsvno_getfh(struct vnode *vp, fhandle_t *fhp, struct thread *p)
sys/fs/nfs/server/nfs_nfsdport.c
2330
nfsattrbit_t *attrbitp, NFSACL_T *aclp, struct thread *p)
sys/fs/nfs/server/nfs_nfsdport.c
241
struct nfsexstuff *exp, struct thread *p, int override, int vpislocked,
sys/fs/nfs/server/nfs_nfsdport.c
2424
nfsattrbit_t *attrbitp, NFSACL_T *aclp, struct thread *p)
sys/fs/nfs/server/nfs_nfsdport.c
2774
struct mount **mpp, int startwrite, struct thread *p)
sys/fs/nfs/server/nfs_nfsdport.c
2871
fp_getfvp(struct thread *p, int fd, struct file **fpp, struct vnode **vpp)
sys/fs/nfs/server/nfs_nfsdport.c
2896
nfsrv_v4rootexport(void *argp, struct ucred *cred, struct thread *p)
sys/fs/nfs/server/nfs_nfsdport.c
3003
u_int64_t end, struct thread *td)
sys/fs/nfs/server/nfs_nfsdport.c
3087
nfssvc_nfsd(struct thread *td, struct nfssvc_args *uap)
sys/fs/nfs/server/nfs_nfsdport.c
3135
nfssvc_srvcall(struct thread *p, struct nfssvc_args *uap, struct ucred *cred)
sys/fs/nfs/server/nfs_nfsdport.c
333
struct thread *p, struct nfsexstuff *exp)
sys/fs/nfs/server/nfs_nfsdport.c
3343
extern int (*nfsd_call_nfsd)(struct thread *, struct nfssvc_args *);
sys/fs/nfs/server/nfs_nfsdport.c
347
struct vnode *dp, int islocked, struct nfsexstuff *exp, struct thread *p,
sys/fs/nfs/server/nfs_nfsdport.c
575
nfsvno_readlink(struct vnode *vp, struct ucred *cred, struct thread *p,
sys/fs/nfs/server/nfs_nfsdport.c
639
struct thread *p, struct mbuf **mpp, struct mbuf **mpendp)
sys/fs/nfs/server/nfs_nfsdport.c
728
struct mbuf *mp, char *cp, struct ucred *cred, struct thread *p)
sys/fs/nfs/server/nfs_nfsdport.c
788
int32_t *cverf, NFSDEV_T rdev, struct thread *p, struct nfsexstuff *exp)
sys/fs/nfs/server/nfs_nfsdport.c
88
static int nfssvc_srvcall(struct thread *, struct nfssvc_args *,
sys/fs/nfs/server/nfs_nfsdport.c
888
struct thread *p)
sys/fs/nfs/server/nfs_nfsdport.c
947
struct ucred *cred, struct thread *p, struct nfsexstuff *exp)
sys/fs/nfs/server/nfs_nfsdport.c
976
int pathlen, int not_v2, uid_t saved_uid, struct ucred *cred, struct thread *p,
sys/kern/kern_threadpool.c
1003
struct threadpool_thread *const thread =
sys/kern/kern_threadpool.c
1005
thread->tpt_lwp = NULL;
sys/kern/kern_threadpool.c
1006
thread->tpt_pool = pool;
sys/kern/kern_threadpool.c
1007
thread->tpt_job = NULL;
sys/kern/kern_threadpool.c
1008
cv_init(&thread->tpt_cv, "pooljob");
sys/kern/kern_threadpool.c
1017
pool->tp_cpu, &threadpool_thread, thread, &lwp,
sys/kern/kern_threadpool.c
1022
pool_cache_put(threadpool_thread_pc, thread);
sys/kern/kern_threadpool.c
1034
TAILQ_INSERT_TAIL(&pool->tp_idle_threads, thread,
sys/kern/kern_threadpool.c
1036
thread->tpt_lwp = lwp;
sys/kern/kern_threadpool.c
1038
cv_broadcast(&thread->tpt_cv);
sys/kern/kern_threadpool.c
1072
struct threadpool_thread *const thread =
sys/kern/kern_threadpool.c
1076
dispatcher__assign, job, thread->tpt_lwp);
sys/kern/kern_threadpool.c
1077
KASSERT(thread->tpt_job == NULL);
sys/kern/kern_threadpool.c
1078
TAILQ_REMOVE(&pool->tp_idle_threads, thread,
sys/kern/kern_threadpool.c
1080
thread->tpt_job = job;
sys/kern/kern_threadpool.c
1081
job->job_thread = thread;
sys/kern/kern_threadpool.c
1082
cv_broadcast(&thread->tpt_cv);
sys/kern/kern_threadpool.c
1104
struct threadpool_thread *const thread = arg;
sys/kern/kern_threadpool.c
1105
struct threadpool *const pool = thread->tpt_pool;
sys/kern/kern_threadpool.c
1112
while (thread->tpt_lwp == NULL)
sys/kern/kern_threadpool.c
1113
cv_wait(&thread->tpt_cv, &pool->tp_lock);
sys/kern/kern_threadpool.c
1117
KASSERT(thread->tpt_lwp == curlwp);
sys/kern/kern_threadpool.c
1120
while (thread->tpt_job == NULL) {
sys/kern/kern_threadpool.c
1126
if (cv_timedwait(&thread->tpt_cv, &pool->tp_lock,
sys/kern/kern_threadpool.c
1130
if (__predict_false(thread->tpt_job == NULL)) {
sys/kern/kern_threadpool.c
1131
TAILQ_REMOVE(&pool->tp_idle_threads, thread,
sys/kern/kern_threadpool.c
1136
struct threadpool_job *const job = thread->tpt_job;
sys/kern/kern_threadpool.c
1142
thread->tpt_lwp_savedname = curlwp->l_name;
sys/kern/kern_threadpool.c
1164
KASSERT(thread->tpt_job == job);
sys/kern/kern_threadpool.c
1165
thread->tpt_job = NULL;
sys/kern/kern_threadpool.c
1166
TAILQ_INSERT_TAIL(&pool->tp_idle_threads, thread, tpt_entry);
sys/kern/kern_threadpool.c
1173
KASSERT(!cv_has_waiters(&thread->tpt_cv));
sys/kern/kern_threadpool.c
1174
cv_destroy(&thread->tpt_cv);
sys/kern/kern_threadpool.c
1175
pool_cache_put(threadpool_thread_pc, thread);
sys/kern/kern_threadpool.c
443
struct threadpool_thread *thread;
sys/kern/kern_threadpool.c
452
TAILQ_FOREACH(thread, &pool->tp_idle_threads, tpt_entry)
sys/kern/kern_threadpool.c
453
cv_broadcast(&thread->tpt_cv);
sys/net80211/ieee80211_netbsd.c
712
struct thread *td = curthread;
tests/lib/libc/gen/t_arc4random.c
227
pthread_t thread;
tests/lib/libc/gen/t_arc4random.c
278
RZ(pthread_create(&thread, NULL, &arc4random_global_thread, NULL));
tests/lib/libc/gen/t_arc4random.c
279
RZ(pthread_join(thread, NULL));
tests/lib/libc/membar/t_dekker.c
138
error = pthread_create(&t[i], NULL, &thread,
tests/lib/libc/membar/t_spinlock.c
134
error = pthread_create(&t[i], NULL, &thread,
tests/lib/libc/sys/t_mmap.c
446
pthread_t thread;
tests/lib/libc/sys/t_mmap.c
450
r = pthread_create(&thread, 0, mmap_reprotect_race_thread, 0);
tests/lib/libc/sys/t_mmap.c
473
pthread_join(thread, NULL);
tests/lib/libc/sys/t_ptrace_kill.c
106
SYSCALL(pthread_create(&thread, NULL, waitthread, &pid), 0);
tests/lib/libc/sys/t_ptrace_kill.c
95
pthread_t thread;
tests/lib/libpthread/dlopen/dso/h_pthread_dlopen.c
77
testf_dso_pthread_create(pthread_t *thread, const pthread_attr_t *attr,
tests/lib/libpthread/dlopen/dso/h_pthread_dlopen.c
82
ret = pthread_create(thread, attr, routine, arg);
tests/lib/libpthread/dlopen/t_dso_pthread_create.c
78
pthread_t thread;
tests/lib/libpthread/dlopen/t_dso_pthread_create.c
94
ret = testf_dso_pthread_create(&thread, NULL, routine, arg);
tests/lib/libpthread/dlopen/t_main_pthread_create.c
62
pthread_t thread;
tests/lib/libpthread/dlopen/t_main_pthread_create.c
65
ret = pthread_create(&thread, NULL, routine, arg);
tests/lib/libpthread/dlopen/t_main_pthread_create.c
80
pthread_t thread;
tests/lib/libpthread/dlopen/t_main_pthread_create.c
93
ret = testf_dso_pthread_create(&thread, NULL, routine, arg);
tests/lib/libpthread/h_thread_local_dtor.cpp
70
std::thread{thread_fn}.join();
tests/lib/libpthread/t_cond.c
529
pthread_t thread;
tests/lib/libpthread/t_cond.c
534
PTHREAD_REQUIRE(pthread_create(&thread, NULL,
tests/lib/libpthread/t_cond.c
542
PTHREAD_REQUIRE(pthread_cancel(thread));
tests/lib/libpthread/t_cond.c
544
PTHREAD_REQUIRE(pthread_join(thread, NULL));
tests/lib/libpthread/t_join.c
102
for (i = 0; i < __arraycount(thread); i++) {
tests/lib/libpthread/t_join.c
109
rv = pthread_create(&thread[i], &attr, threadfunc2, (void *)i);
tests/lib/libpthread/t_join.c
116
PTHREAD_REQUIRE(pthread_join(thread[i], &val));
tests/lib/libpthread/t_join.c
127
rv = pthread_join(thread[i], NULL);
tests/lib/libpthread/t_join.c
134
rv = pthread_detach(thread[i]);
tests/lib/libpthread/t_join.c
63
pthread_t thread;
tests/lib/libpthread/t_join.c
65
PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc1, NULL));
tests/lib/libpthread/t_join.c
66
PTHREAD_REQUIRE(pthread_join(thread, NULL));
tests/lib/libpthread/t_join.c
72
pthread_t thread[25];
tests/lib/libpthread/t_once.c
170
pthread_t thread;
tests/lib/libpthread/t_once.c
186
PTHREAD_REQUIRE(pthread_create(&thread, NULL, once3_threadfunc, NULL));
tests/lib/libpthread/t_once.c
187
PTHREAD_REQUIRE(pthread_cancel(thread));
tests/lib/libpthread/t_once.c
189
PTHREAD_REQUIRE(pthread_join(thread, NULL));
tests/lib/libpthread/t_siglongjmp.c
83
PTHREAD_REQUIRE(pthread_create(&t, NULL, thread, NULL));
tests/lib/libpthread/t_sigmask.c
180
pthread_t thread;
tests/lib/libpthread/t_sigmask.c
194
PTHREAD_REQUIRE(pthread_create(&thread, NULL,
tests/lib/libpthread/t_sigmask.c
196
PTHREAD_REQUIRE(pthread_join(thread, NULL));
tests/lib/libpthread/t_sleep.c
72
pthread_t thread;
tests/lib/libpthread/t_sleep.c
84
PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc, NULL));
tests/lib/libpthread/t_sleep.c
96
PTHREAD_REQUIRE(pthread_join(thread, NULL));
tests/lib/libpthread/t_swapcontext.c
102
PTHREAD_REQUIRE(pthread_create(&thread, NULL, threadfunc, NULL));
tests/lib/libpthread/t_swapcontext.c
103
PTHREAD_REQUIRE(pthread_join(thread, NULL));
tests/lib/libpthread/t_swapcontext.c
93
pthread_t thread;
tests/libexec/ld.elf_so/h_thread_local_dtor.c
61
pthread_t thread;
tests/libexec/ld.elf_so/h_thread_local_dtor.c
72
if (pthread_create(&thread, NULL, thread_helper, testfunc))
tests/libexec/ld.elf_so/h_thread_local_dtor.c
90
if (pthread_join(thread, NULL))
tests/modules/t_kcov.c
209
pthread_t thread;
tests/modules/t_kcov.c
214
pthread_create(&thread, NULL,
tests/modules/t_kcov.c
219
pthread_join(thread, NULL);
tests/modules/t_kcov.c
420
pthread_t thread;
tests/modules/t_kcov.c
431
pthread_create(&thread, NULL, thread_buffer_access_test_helper,
tests/modules/t_kcov.c
433
pthread_join(thread, NULL);
tests/modules/t_kcov.c
458
pthread_t thread;
tests/modules/t_kcov.c
471
pthread_create(&thread, NULL, thread_test_helper, __UNVOLATILE(buf));
tests/modules/t_kcov.c
479
pthread_join(thread, NULL);
tests/modules/t_kcov.c
515
pthread_t thread[32];
tests/modules/t_kcov.c
526
ATF_REQUIRE(__arraycount(thread) >= N);
tests/modules/t_kcov.c
529
pthread_create(&thread[i], NULL, multiple_threads_helper, NULL);
tests/modules/t_kcov.c
532
pthread_join(thread[i], NULL);
tests/rump/kernspace/busypage.c
82
thread, NULL, &newl, "jointest");
tests/usr.bin/indent/fmt_decl.c
239
struct thread *ald_thread;
tests/usr.bin/indent/fmt_decl.c
245
struct thread *ald_thread;
tests/usr.bin/indent/fmt_decl.c
252
struct thread *a;
tests/usr.bin/indent/fmt_decl.c
263
struct thread *a;
tests/usr.bin/xlint/lint1/decl.c
166
thread int thread_int;
usr.bin/mail/thread.c
412
redepth(struct thread_s *thread)
usr.bin/mail/thread.c
417
assert(thread != NULL);
usr.bin/mail/thread.c
419
if ((mp = thread->t_head) == NULL || mp->m_size == 0)