Lines Matching refs:thread

196 struct thread;
229 struct thread { struct
232 TAILQ_ENTRY(thread) td_plist; /* (*) All threads in this proc. */ argument
233 TAILQ_ENTRY(thread) td_runq; /* (t) Run queue. */
235 TAILQ_ENTRY(thread) td_slpq; /* (t) Sleep queue. */ argument
236 struct thread *td_zombie; /* Zombie list linkage */
238 TAILQ_ENTRY(thread) td_lockq; /* (t) Lock queue. */
239 LIST_ENTRY(thread) td_hash; /* (d) Hash chain. */
384 struct thread t0st_thread; argument
388 struct mtx *thread_lock_block(struct thread *);
389 void thread_lock_block_wait(struct thread *);
390 void thread_lock_set(struct thread *, struct mtx *);
391 void thread_lock_unblock(struct thread *, struct mtx *);
598 TAILQ_HEAD(, thread) p_threads; /* (c) all threads. */
657 struct thread *p_singlethread;/* (c + j) If single threading this is it */
659 struct thread *p_xthread; /* (c) Trap thread */
1021 TAILQ_HEAD(threadqueue, thread);
1064 struct thread *choosethread(void);
1075 int fork1(struct thread *, struct fork_req *);
1076 void fork_rfppwait(struct thread *);
1079 void fork_return(struct thread *, struct trapframe *);
1087 int maybe_preempt(struct thread *td);
1090 int p_candebug(struct thread *td, struct proc *p);
1091 int p_cansee(struct thread *td, struct proc *p);
1092 int p_cansched(struct thread *td, struct proc *p);
1093 int p_cansignal(struct thread *td, struct proc *p, int signum);
1094 int p_canwait(struct thread *td, struct proc *p);
1098 int proc_getargv(struct thread *td, struct proc *p, struct sbuf *sb);
1099 int proc_getauxv(struct thread *td, struct proc *p, struct sbuf *sb);
1100 int proc_getenvv(struct thread *td, struct proc *p, struct sbuf *sb);
1103 void proc_linkup0(struct proc *p, struct thread *td);
1104 void proc_linkup(struct proc *p, struct thread *td);
1106 void proc_reap(struct thread *td, struct proc *p, int *status, int options);
1120 int setrunnable(struct thread *, int);
1125 struct thread *tdfind(lwpid_t, pid_t);
1127 void tidhash_add(struct thread *);
1128 void tidhash_remove(struct thread *);
1132 void cpu_switch(struct thread *, struct thread *, struct mtx *);
1133 void cpu_throw(struct thread *, struct thread *) __dead2;
1134 void unsleep(struct thread *);
1135 void userret(struct thread *, struct trapframe *);
1137 void cpu_exit(struct thread *);
1138 void exit1(struct thread *, int, int) __dead2;
1139 void cpu_copy_thread(struct thread *td, struct thread *td0);
1141 int cpu_fetch_syscall_args(struct thread *td);
1142 void cpu_fork(struct thread *, struct proc *, struct thread *, int);
1143 void cpu_fork_kthread_handler(struct thread *, void (*)(void *), void *);
1144 int cpu_procctl(struct thread *td, int idtype, id_t id, int com,
1146 void cpu_set_syscall_retval(struct thread *, int);
1147 void cpu_set_upcall(struct thread *, void (*)(void *), void *,
1149 int cpu_set_user_tls(struct thread *, void *tls_base);
1150 void cpu_thread_alloc(struct thread *);
1151 void cpu_thread_clean(struct thread *);
1152 void cpu_thread_exit(struct thread *);
1153 void cpu_thread_free(struct thread *);
1154 void cpu_thread_swapin(struct thread *);
1155 void cpu_thread_swapout(struct thread *);
1156 struct thread *thread_alloc(int pages);
1157 int thread_alloc_stack(struct thread *, int pages);
1158 int thread_check_susp(struct thread *td, bool sleep);
1159 void thread_cow_get_proc(struct thread *newtd, struct proc *p);
1160 void thread_cow_get(struct thread *newtd, struct thread *td);
1161 void thread_cow_free(struct thread *td);
1162 void thread_cow_update(struct thread *td);
1163 int thread_create(struct thread *td, struct rtprio *rtp,
1164 int (*initialize_thread)(struct thread *, void *), void *thunk);
1166 void thread_free(struct thread *td);
1167 void thread_link(struct thread *td, struct proc *p);
1170 void thread_stash(struct thread *td);
1177 void thread_suspend_switch(struct thread *, struct proc *p);
1178 void thread_suspend_one(struct thread *td);
1179 void thread_unlink(struct thread *td);
1189 struct thread *td; in curthread_pflags_set()
1208 struct thread *td; in curthread_pflags2_set()
1225 kstack_contains(struct thread *td, vm_offset_t va, size_t len) in kstack_contains()
1232 td_get_sched(struct thread *td) in td_get_sched()
1238 extern void (*softdep_ast_cleanup)(struct thread *);
1240 td_softdep_cleanup(struct thread *td) in td_softdep_cleanup()