Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 1903) sorted by relevance

12345678910>>...77

/freebsd-12.1/sys/sys/
H A Dsyscallsubr.h79 int kern_break(struct thread *td, uintptr_t *addr);
94 int kern_close(struct thread *td, int fd);
137 int kern_getppid(struct thread *);
146 int kern_jail(struct thread *td, struct jail *j);
223 int kern_sched_getparam(struct thread *td, struct thread *targettd,
225 int kern_sched_getscheduler(struct thread *td, struct thread *targettd,
227 int kern_sched_setparam(struct thread *td, struct thread *targettd,
229 int kern_sched_setscheduler(struct thread *td, struct thread *targettd,
233 int kern_sched_rr_get_interval_td(struct thread *td, struct thread *targettd,
276 int kern_ktimer_delete(struct thread *, int);
[all …]
H A Dsched.h85 void sched_fork(struct thread *td, struct thread *childtd);
94 void sched_exit_thread(struct thread *td, struct thread *child);
96 void sched_fork_thread(struct thread *td, struct thread *child);
102 void sched_switch(struct thread *td, struct thread *newtd, int flags);
103 void sched_throw(struct thread *td);
107 void sched_wakeup(struct thread *td);
115 sched_userret(struct thread *td) in sched_userret()
137 void sched_clock(struct thread *td);
139 void sched_rem(struct thread *td);
141 struct thread *sched_choose(void);
[all …]
H A Dsysproto.h24 struct thread;
1793 int nosys(struct thread *, struct nosys_args *);
1795 int sys_fork(struct thread *, struct fork_args *);
1796 int sys_read(struct thread *, struct read_args *);
1798 int sys_open(struct thread *, struct open_args *);
1827 int sys_dup(struct thread *, struct dup_args *);
2311 int ostat(struct thread *, struct ostat_args *);
2319 int ommap(struct thread *, struct ommap_args *);
2320 int owait(struct thread *, struct owait_args *);
2324 int osend(struct thread *, struct osend_args *);
[all …]
H A Dproc.h191 struct thread;
223 struct thread { struct
374 struct thread t0st_thread; argument
1090 void cpu_switch(struct thread *, struct thread *, struct mtx *);
1091 void cpu_throw(struct thread *, struct thread *) __dead2;
1092 void unsleep(struct thread *);
1095 void cpu_exit(struct thread *);
1097 void cpu_copy_thread(struct thread *td, struct thread *td0);
1100 void cpu_fork(struct thread *, struct proc *, struct thread *, int);
1117 void thread_cow_get(struct thread *newtd, struct thread *td);
[all …]
H A Dptrace.h174 int ptrace_set_pc(struct thread *_td, unsigned long _addr);
175 int ptrace_single_step(struct thread *_td);
176 int ptrace_clear_single_step(struct thread *_td);
192 int proc_read_regs(struct thread *_td, struct reg *_reg);
193 int proc_write_regs(struct thread *_td, struct reg *_reg);
194 int proc_read_fpregs(struct thread *_td, struct fpreg *_fpreg);
195 int proc_write_fpregs(struct thread *_td, struct fpreg *_fpreg);
196 int proc_read_dbregs(struct thread *_td, struct dbreg *_dbreg);
197 int proc_write_dbregs(struct thread *_td, struct dbreg *_dbreg);
198 int proc_sstep(struct thread *_td);
[all …]
H A Dfile.h51 struct thread;
100 struct thread *td);
119 struct thread *td);
326 struct thread *td) in fo_truncate()
334 struct thread *td) in fo_ioctl()
342 struct thread *td) in fo_poll()
350 struct thread *td) in fo_stat()
372 struct thread *td) in fo_chmod()
380 struct thread *td) in fo_chown()
389 struct thread *td) in fo_sendfile()
[all …]
/freebsd-12.1/lib/libthr/thread/
H A Dthr_list.c152 if (thread == NULL) { in _thr_alloc()
179 thread->tcb = tcb; in _thr_alloc()
183 thread = NULL; in _thr_alloc()
185 return (thread); in _thr_alloc()
205 thread->tcb = NULL; in _thr_free()
228 free(thread); in thr_destroy()
279 if (td == thread) in _thr_hash_find()
280 return (thread); in _thr_hash_find()
296 if (thread == NULL) in _thr_ref_add()
314 thread->refcount--; in _thr_ref_delete()
[all …]
H A Dthr_suspend_np.c51 _pthread_suspend_np(pthread_t thread) in _pthread_suspend_np() argument
57 if (thread == _get_curthread()) in _pthread_suspend_np()
110 struct pthread *thread; in _pthread_suspend_all_np() local
119 if (thread != curthread) { in _pthread_suspend_all_np()
121 if (thread->state != PS_DEAD && in _pthread_suspend_all_np()
131 if (thread != curthread) { in _pthread_suspend_all_np()
138 THR_REF_ADD(curthread, thread); in _pthread_suspend_all_np()
140 THR_REF_DEL(curthread, thread); in _pthread_suspend_all_np()
141 _thr_try_gc(curthread, thread); in _pthread_suspend_all_np()
167 while (thread->state != PS_DEAD && in suspend_common()
[all …]
H A Dthr_info.c54 free(thread->name); in thr_set_name_np()
65 if (curthread == thread) { in _pthread_set_name_np()
67 thr_set_name(thread->tid, name); in _pthread_set_name_np()
68 thr_set_name_np(thread, name); in _pthread_set_name_np()
72 if (thread->state != PS_DEAD) { in _pthread_set_name_np()
73 thr_set_name(thread->tid, name); in _pthread_set_name_np()
74 thr_set_name_np(thread, name); in _pthread_set_name_np()
85 if (thread->name != NULL) in thr_get_name_np()
86 strlcpy(buf, thread->name, len); in thr_get_name_np()
99 if (curthread == thread) { in _pthread_get_name_np()
[all …]
H A Dthr_resume_np.c50 _pthread_resume_np(pthread_t thread) in _pthread_resume_np() argument
58 resume_common(thread); in _pthread_resume_np()
59 THR_THREAD_UNLOCK(curthread, thread); in _pthread_resume_np()
68 struct pthread *thread; in _pthread_resume_all_np() local
78 if (thread != curthread) { in _pthread_resume_all_np()
79 THR_THREAD_LOCK(curthread, thread); in _pthread_resume_all_np()
80 resume_common(thread); in _pthread_resume_all_np()
81 THR_THREAD_UNLOCK(curthread, thread); in _pthread_resume_all_np()
93 resume_common(struct pthread *thread) in resume_common() argument
97 thread->cycle++; in resume_common()
[all …]
/freebsd-12.1/contrib/gcc/cp/
H A Dcfns.gperf47 #fclose -- POSIX thread cancellation point
50 #fflush -- POSIX thread cancellation point
51 #fgetc -- POSIX thread cancellation point
52 #fgetpos -- POSIX thread cancellation point
53 #fgets -- POSIX thread cancellation point
58 #fopen -- POSIX thread cancellation point
60 #fputc -- POSIX thread cancellation point
61 #fputs -- POSIX thread cancellation point
64 #fread -- POSIX thread cancellation point
76 #getc -- POSIX thread cancellation point
[all …]
/freebsd-12.1/contrib/gdb/gdb/
H A Di386gnu-nat.c65 fetch_fpregs (struct proc *thread) in fetch_fpregs() argument
76 proc_string (thread)); in fetch_fpregs()
117 struct proc *thread; in gnu_fetch_registers() local
123 if (!thread) in gnu_fetch_registers()
136 proc_string (thread)); in gnu_fetch_registers()
148 thread->fetched_regs = ~0; in gnu_fetch_registers()
163 fetch_fpregs (thread); in gnu_fetch_registers()
182 proc_string (thread)); in store_fpregs()
195 proc_string (thread)); in store_fpregs()
204 struct proc *thread; in gnu_store_registers() local
[all …]
H A Dgnu-nat.c932 for (thread = inf->threads; thread; thread = thread->next) in inf_update_suspends()
967 thread = thread->next; in inf_tid_to_thread()
980 thread = thread->next; in inf_port_to_thread()
1042 thread = thread->next; in inf_validate_procs()
1099 for (thread = inf->threads; thread; thread = thread->next) in inf_set_threads_resume_sc()
1118 for (thread = inf->threads; thread; thread = thread->next) in inf_resume()
1143 for (thread = inf->threads; thread; thread = thread->next) in inf_suspend()
1232 for (thread = inf->threads; thread; thread = thread->next) in inf_detach()
1269 for (thread = inf->threads; thread; thread = thread->next) in inf_steal_exc_ports()
1284 for (thread = inf->threads; thread; thread = thread->next) in inf_restore_exc_ports()
[all …]
/freebsd-12.1/contrib/libc++/include/
H A Dthread23 class thread
33 thread(const thread&) = delete;
34 thread(thread&& t) noexcept;
36 thread& operator=(const thread&) = delete;
37 thread& operator=(thread&& t) noexcept;
50 void swap(thread& x, thread& y) noexcept;
225 thread(const thread&);
226 thread& operator=(const thread&);
295 thread::thread(_Fp&& __f, _Args&&... __args)
313 thread::operator=(thread&& __t) _NOEXCEPT
[all …]
/freebsd-12.1/sys/i386/linux/
H A Dlinux_proto.h24 struct thread;
1530 int linux_exit(struct thread *, struct linux_exit_args *);
1531 int linux_fork(struct thread *, struct linux_fork_args *);
1532 int linux_open(struct thread *, struct linux_open_args *);
1535 int linux_link(struct thread *, struct linux_link_args *);
1539 int linux_time(struct thread *, struct linux_time_args *);
1543 int linux_stat(struct thread *, struct linux_stat_args *);
1564 int linux_brk(struct thread *, struct linux_brk_args *);
1616 int linux_ipc(struct thread *, struct linux_ipc_args *);
1771 int linux_tee(struct thread *, struct linux_tee_args *);
[all …]
/freebsd-12.1/sys/amd64/linux32/
H A Dlinux32_proto.h24 struct thread;
1512 int linux_exit(struct thread *, struct linux_exit_args *);
1513 int linux_fork(struct thread *, struct linux_fork_args *);
1514 int linux_open(struct thread *, struct linux_open_args *);
1517 int linux_link(struct thread *, struct linux_link_args *);
1521 int linux_time(struct thread *, struct linux_time_args *);
1525 int linux_stat(struct thread *, struct linux_stat_args *);
1545 int linux_brk(struct thread *, struct linux_brk_args *);
1597 int linux_ipc(struct thread *, struct linux_ipc_args *);
1751 int linux_tee(struct thread *, struct linux_tee_args *);
[all …]
/freebsd-12.1/contrib/openmp/runtime/src/
H A Dkmp_taskdeps.h34 __kmp_fast_free(thread, node); in __kmp_node_deref()
36 __kmp_thread_free(thread, node); in __kmp_node_deref()
50 __kmp_fast_free(thread, list); in __kmp_depnode_list_free()
52 __kmp_thread_free(thread, list); in __kmp_depnode_list_free()
72 __kmp_fast_free(thread, entry); in __kmp_dephash_free_entries()
85 __kmp_fast_free(thread, h); in __kmp_dephash_free()
87 __kmp_thread_free(thread, h); in __kmp_dephash_free()
132 __kmp_node_deref(thread, p->node); in __kmp_release_deps()
134 __kmp_fast_free(thread, p); in __kmp_release_deps()
136 __kmp_thread_free(thread, p); in __kmp_release_deps()
[all …]
/freebsd-12.1/sys/contrib/ck/src/
H A Dck_hp.c230 cache = thread->cache; in ck_hp_reclaim()
254 thread->n_pending -= 1; in ck_hp_reclaim()
264 thread->n_reclamations++; in ck_hp_reclaim()
281 thread->n_pending += 1; in ck_hp_retire()
282 if (thread->n_pending > thread->n_peak) in ck_hp_retire()
283 thread->n_peak = thread->n_pending; in ck_hp_retire()
301 thread->n_pending += 1; in ck_hp_free()
302 if (thread->n_pending > thread->n_peak) in ck_hp_free()
303 thread->n_peak = thread->n_pending; in ck_hp_free()
306 ck_hp_reclaim(thread); in ck_hp_free()
[all …]
/freebsd-12.1/sys/nfs/
H A Dnfs_fha.c251 thread->st_p2 = 0; in fha_hash_entry_add_thread()
262 ("%d reqs on removed thread %p", thread->st_p2, thread)); in fha_hash_entry_remove_thread()
302 return (thread); in fha_hash_entry_choose_thread()
357 "fha: %p(%d)t", thread, thread->st_p2); in fha_hash_entry_choose_thread()
368 return (thread); in fha_hash_entry_choose_thread()
379 SVCTHREAD *thread; in fha_assign() local
417 thread->st_p2++; in fha_assign()
427 return (thread); in fha_assign()
454 thread->st_p2--; in fha_nd_complete()
456 thread->st_p2, thread)); in fha_nd_complete()
[all …]
/freebsd-12.1/sys/amd64/linux/
H A Dlinux_proto.h24 struct thread;
1245 int linux_open(struct thread *, struct linux_open_args *);
1252 int linux_brk(struct thread *, struct linux_brk_args *);
1260 int linux_pipe(struct thread *, struct linux_pipe_args *);
1283 int linux_bind(struct thread *, struct linux_bind_args *);
1291 int linux_fork(struct thread *, struct linux_fork_args *);
1294 int linux_exit(struct thread *, struct linux_exit_args *);
1296 int linux_kill(struct thread *, struct linux_kill_args *);
1317 int linux_link(struct thread *, struct linux_link_args *);
1454 int linux_tee(struct thread *, struct linux_tee_args *);
[all …]
/freebsd-12.1/sys/arm64/linux/
H A Dlinux_proto.h24 struct thread;
1074 int linux_dup3(struct thread *, struct linux_dup3_args *);
1075 int linux_fcntl(struct thread *, struct linux_fcntl_args *);
1079 int linux_ioctl(struct thread *, struct linux_ioctl_args *);
1114 int linux_tee(struct thread *, struct linux_tee_args *);
1127 int linux_exit(struct thread *, struct linux_exit_args *);
1161 int linux_kill(struct thread *, struct linux_kill_args *);
1214 int linux_bind(struct thread *, struct linux_bind_args *);
1227 int linux_brk(struct thread *, struct linux_brk_args *);
1262 int linux_kcmp(struct thread *, struct linux_kcmp_args *);
[all …]
/freebsd-12.1/sys/contrib/zstd/lib/common/
H A Dthreading.c38 ZSTD_pthread_t* const thread = (ZSTD_pthread_t*) arg; in worker() local
39 thread->arg = thread->start_routine(thread->arg); in worker()
43 int ZSTD_pthread_create(ZSTD_pthread_t* thread, const void* unused, in ZSTD_pthread_create() argument
47 thread->arg = arg; in ZSTD_pthread_create()
48 thread->start_routine = start_routine; in ZSTD_pthread_create()
49 thread->handle = (HANDLE) _beginthreadex(NULL, 0, worker, thread, 0, NULL); in ZSTD_pthread_create()
51 if (!thread->handle) in ZSTD_pthread_create()
57 int ZSTD_pthread_join(ZSTD_pthread_t thread, void **value_ptr) in ZSTD_pthread_join() argument
61 if (!thread.handle) return 0; in ZSTD_pthread_join()
63 result = WaitForSingleObject(thread.handle, INFINITE); in ZSTD_pthread_join()
[all …]
/freebsd-12.1/sys/i386/ibcs2/
H A Dibcs2_proto.h24 struct thread;
279 int ibcs2_read(struct thread *, struct ibcs2_read_args *);
280 int ibcs2_open(struct thread *, struct ibcs2_open_args *);
281 int ibcs2_wait(struct thread *, struct ibcs2_wait_args *);
282 int ibcs2_creat(struct thread *, struct ibcs2_creat_args *);
284 int ibcs2_execv(struct thread *, struct ibcs2_execv_args *);
286 int ibcs2_time(struct thread *, struct ibcs2_time_args *);
290 int ibcs2_stat(struct thread *, struct ibcs2_stat_args *);
301 int ibcs2_nice(struct thread *, struct ibcs2_nice_args *);
303 int ibcs2_kill(struct thread *, struct ibcs2_kill_args *);
[all …]
/freebsd-12.1/contrib/compiler-rt/lib/asan/
H A Dasan_rtems.cc114 thread->Init(&options); in CreateAsanThread()
115 return thread; in CreateAsanThread()
137 return GetThreadContextByTidLocked(0)->thread; in CreateMainThread()
159 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadCreateHook() local
166 asanThreadRegistry().FinishThread(thread->tid()); in ThreadCreateHook()
167 UnmapOrDie(thread, sizeof(AsanThread)); in ThreadCreateHook()
179 SetCurrentThread(thread); in ThreadStartHook()
193 PoisonShadow(thread->stack_bottom(), thread->stack_size(), 0); in ThreadStartHook()
202 if (thread) in ThreadExitHook()
203 AsanThread::TSDDtor(thread->context()); in ThreadExitHook()
[all …]
/freebsd-12.1/sys/arm64/include/
H A Dreg.h72 int fill_regs(struct thread *, struct reg *);
73 int set_regs(struct thread *, struct reg *);
74 int fill_fpregs(struct thread *, struct fpreg *);
75 int set_fpregs(struct thread *, struct fpreg *);
76 int fill_dbregs(struct thread *, struct dbreg *);
77 int set_dbregs(struct thread *, struct dbreg *);
79 int fill_regs32(struct thread *, struct reg32 *);
80 int set_regs32(struct thread *, struct reg32 *);
81 int fill_fpregs32(struct thread *, struct fpreg32 *);
82 int set_fpregs32(struct thread *, struct fpreg32 *);
[all …]

12345678910>>...77