| /freebsd-14.2/sys/sys/ |
| H A D | syscallsubr.h | 114 int kern_close(struct thread *td, int fd); 189 int kern_getppid(struct thread *); 194 int kern_getsid(struct thread *td, pid_t pid); 297 int kern_sched_getparam(struct thread *td, struct thread *targettd, 299 int kern_sched_getscheduler(struct thread *td, struct thread *targettd, 301 int kern_sched_setparam(struct thread *td, struct thread *targettd, 303 int kern_sched_setscheduler(struct thread *td, struct thread *targettd, 307 int kern_sched_rr_get_interval_td(struct thread *td, struct thread *targettd, 352 int kern_sync(struct thread *td); 355 int kern_ktimer_delete(struct thread *, int); [all …]
|
| H A D | sched.h | 83 void sched_fork(struct thread *td, struct thread *childtd); 93 void sched_exit_thread(struct thread *td, struct thread *child); 94 u_int sched_estcpu(struct thread *td); 95 void sched_fork_thread(struct thread *td, struct thread *child); 104 void sched_throw(struct thread *td); 115 sched_userret(struct thread *td) in sched_userret() 137 struct thread *sched_choose(void); 140 void sched_preempt(struct thread *td); 142 void sched_rem(struct thread *td); 151 void sched_unbind(struct thread *td); [all …]
|
| H A D | sysproto.h | 23 struct thread; 1891 int sys_exit(struct thread *, struct exit_args *); 1892 int sys_fork(struct thread *, struct fork_args *); 1893 int sys_read(struct thread *, struct read_args *); 1895 int sys_open(struct thread *, struct open_args *); 1924 int sys_dup(struct thread *, struct dup_args *); 2445 int ostat(struct thread *, struct ostat_args *); 2453 int ommap(struct thread *, struct ommap_args *); 2454 int owait(struct thread *, struct owait_args *); 2458 int osend(struct thread *, struct osend_args *); [all …]
|
| H A D | reg.h | 67 int fill_regs(struct thread *, struct reg *); 68 int set_regs(struct thread *, struct reg *); 69 int fill_fpregs(struct thread *, struct fpreg *); 70 int set_fpregs(struct thread *, struct fpreg *); 71 int fill_dbregs(struct thread *, struct dbreg *); 72 int set_dbregs(struct thread *, struct dbreg *); 74 int fill_regs32(struct thread *, struct reg32 *); 75 int set_regs32(struct thread *, struct reg32 *); 77 int fill_fpregs32(struct thread *, struct fpreg32 *); 80 int set_fpregs32(struct thread *, struct fpreg32 *); [all …]
|
| H A D | proc.h | 196 struct thread; 236 struct thread { struct 396 struct thread t0st_thread; argument 1235 void cpu_switch(struct thread *, struct thread *, struct mtx *); 1237 void cpu_throw(struct thread *, struct thread *) __dead2; 1241 void cpu_exit(struct thread *); 1243 void cpu_copy_thread(struct thread *td, struct thread *td0); 1246 void cpu_fork(struct thread *, struct proc *, struct thread *, int); 1264 void thread_cow_get(struct thread *newtd, struct thread *td); 1298 struct thread *td; in curthread_pflags_set() [all …]
|
| H A D | ptrace.h | 219 int ptrace_set_pc(struct thread *_td, unsigned long _addr); 220 int ptrace_single_step(struct thread *_td); 221 int ptrace_clear_single_step(struct thread *_td); 237 int proc_read_regs(struct thread *_td, struct reg *_reg); 238 int proc_write_regs(struct thread *_td, struct reg *_reg); 239 int proc_read_fpregs(struct thread *_td, struct fpreg *_fpreg); 240 int proc_write_fpregs(struct thread *_td, struct fpreg *_fpreg); 241 int proc_read_dbregs(struct thread *_td, struct dbreg *_dbreg); 242 int proc_write_dbregs(struct thread *_td, struct dbreg *_dbreg); 243 int proc_sstep(struct thread *_td); [all …]
|
| H A D | file.h | 50 struct thread; 101 struct thread *td); 120 struct thread *td); 130 struct thread *td); 359 struct thread *td) in fo_truncate() 367 struct thread *td) in fo_ioctl() 375 struct thread *td) in fo_poll() 404 struct thread *td) in fo_chmod() 412 struct thread *td) in fo_chown() 421 struct thread *td) in fo_sendfile() [all …]
|
| /freebsd-14.2/lib/libthr/thread/ |
| H A D | thr_list.c | 150 if (thread == NULL) { in _thr_alloc() 177 thread->tcb = tcb; in _thr_alloc() 181 thread = NULL; in _thr_alloc() 183 return (thread); in _thr_alloc() 203 thread->tcb = NULL; in _thr_free() 226 free(thread); in thr_destroy() 277 if (td == thread) in _thr_hash_find() 278 return (thread); in _thr_hash_find() 294 if (thread == NULL) in _thr_ref_add() 312 thread->refcount--; in _thr_ref_delete() [all …]
|
| H A D | thr_suspend_np.c | 48 _pthread_suspend_np(pthread_t thread) in _pthread_suspend_np() argument 54 if (thread == _get_curthread()) in _pthread_suspend_np() 107 struct pthread *thread; in _pthread_suspend_all_np() local 116 if (thread != curthread) { in _pthread_suspend_all_np() 118 if (thread->state != PS_DEAD && in _pthread_suspend_all_np() 128 if (thread != curthread) { in _pthread_suspend_all_np() 135 THR_REF_ADD(curthread, thread); in _pthread_suspend_all_np() 137 THR_REF_DEL(curthread, thread); in _pthread_suspend_all_np() 138 _thr_try_gc(curthread, thread); in _pthread_suspend_all_np() 164 while (thread->state != PS_DEAD && in suspend_common() [all …]
|
| H A D | thr_info.c | 50 free(thread->name); in thr_set_name_np() 51 thread->name = *tmp_name; in thr_set_name_np() 72 if (curthread == thread) { in _pthread_setname_np() 74 THR_THREAD_LOCK(curthread, thread); in _pthread_setname_np() 83 if (thread->state != PS_DEAD) { in _pthread_setname_np() 110 if (thread->name != NULL) in thr_get_name_np() 111 strlcpy(buf, thread->name, len); in thr_get_name_np() 126 if (curthread == thread) { in _thr_getname_np() 127 THR_THREAD_LOCK(curthread, thread); in _thr_getname_np() 128 thr_get_name_np(thread, buf, len); in _thr_getname_np() [all …]
|
| H A D | thr_resume_np.c | 47 _pthread_resume_np(pthread_t thread) in _pthread_resume_np() argument 55 resume_common(thread); in _pthread_resume_np() 56 THR_THREAD_UNLOCK(curthread, thread); in _pthread_resume_np() 65 struct pthread *thread; in _pthread_resume_all_np() local 75 if (thread != curthread) { in _pthread_resume_all_np() 76 THR_THREAD_LOCK(curthread, thread); in _pthread_resume_all_np() 77 resume_common(thread); in _pthread_resume_all_np() 78 THR_THREAD_UNLOCK(curthread, thread); in _pthread_resume_all_np() 90 resume_common(struct pthread *thread) in resume_common() argument 94 thread->cycle++; in resume_common() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | thread.h | 38 class thread { 73 thread(thread &&Other) noexcept in thread() function 83 thread(const thread &) = delete; 90 thread &operator=(thread &&Other) noexcept { 137 thread::id thread::get_id() const noexcept { in get_id() 164 thread() : Thread(std::thread()) {} 165 thread(thread &&Other) noexcept 176 thread(const thread &) = delete; 180 thread &operator=(thread &&Other) noexcept { 220 thread(thread &&other) {} in thread() argument [all …]
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/ |
| H A D | thread | 15 thread synopsis 20 class thread 28 ~thread(); 30 thread(const thread&) = delete; 31 thread(thread&& t) noexcept; 33 thread& operator=(const thread&) = delete; 34 thread& operator=(thread&& t) noexcept; 47 void swap(thread& x, thread& y) noexcept; 49 class thread::id 55 bool operator==(thread::id x, thread::id y) noexcept; [all …]
|
| /freebsd-14.2/sys/contrib/ck/src/ |
| H A D | ck_hp.c | 230 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-14.2/sys/i386/linux/ |
| H A D | linux_proto.h | 23 struct thread; 1732 int linux_exit(struct thread *, struct linux_exit_args *); 1733 int linux_fork(struct thread *, struct linux_fork_args *); 1735 int linux_open(struct thread *, struct linux_open_args *); 1738 int linux_link(struct thread *, struct linux_link_args *); 1742 int linux_time(struct thread *, struct linux_time_args *); 1746 int linux_stat(struct thread *, struct linux_stat_args *); 1766 int linux_brk(struct thread *, struct linux_brk_args *); 1818 int linux_ipc(struct thread *, struct linux_ipc_args *); 1977 int linux_tee(struct thread *, struct linux_tee_args *); [all …]
|
| /freebsd-14.2/sys/amd64/linux32/ |
| H A D | linux32_proto.h | 23 struct thread; 1738 int linux_exit(struct thread *, struct linux_exit_args *); 1739 int linux_fork(struct thread *, struct linux_fork_args *); 1741 int linux_open(struct thread *, struct linux_open_args *); 1744 int linux_link(struct thread *, struct linux_link_args *); 1748 int linux_time(struct thread *, struct linux_time_args *); 1752 int linux_stat(struct thread *, struct linux_stat_args *); 1772 int linux_brk(struct thread *, struct linux_brk_args *); 1824 int linux_ipc(struct thread *, struct linux_ipc_args *); 1981 int linux_tee(struct thread *, struct linux_tee_args *); [all …]
|
| /freebsd-14.2/sys/arm64/include/ |
| H A D | vfp.h | 69 struct thread; 74 void vfp_discard(struct thread *); 77 void vfp_new_thread(struct thread *, struct thread *, bool); 78 void vfp_reset_state(struct thread *, struct pcb *); 80 void vfp_save_state(struct thread *, struct pcb *); 82 void vfp_save_state_switch(struct thread *); 83 void vfp_to_sve_sync(struct thread *); 84 void sve_to_vfp_sync(struct thread *); 87 size_t sve_buf_size(struct thread *); 88 bool sve_restore_state(struct thread *); [all …]
|
| /freebsd-14.2/sys/amd64/linux/ |
| H A D | linux_proto.h | 23 struct thread; 1441 int linux_open(struct thread *, struct linux_open_args *); 1445 int linux_poll(struct thread *, struct linux_poll_args *); 1449 int linux_brk(struct thread *, struct linux_brk_args *); 1458 int linux_pipe(struct thread *, struct linux_pipe_args *); 1482 int linux_bind(struct thread *, struct linux_bind_args *); 1490 int linux_fork(struct thread *, struct linux_fork_args *); 1493 int linux_exit(struct thread *, struct linux_exit_args *); 1495 int linux_kill(struct thread *, struct linux_kill_args *); 1661 int linux_tee(struct thread *, struct linux_tee_args *); [all …]
|
| /freebsd-14.2/sys/arm64/linux/ |
| H A D | linux_proto.h | 23 struct thread; 1265 int linux_dup3(struct thread *, struct linux_dup3_args *); 1266 int linux_fcntl(struct thread *, struct linux_fcntl_args *); 1307 int linux_tee(struct thread *, struct linux_tee_args *); 1320 int linux_exit(struct thread *, struct linux_exit_args *); 1354 int linux_kill(struct thread *, struct linux_kill_args *); 1406 int linux_bind(struct thread *, struct linux_bind_args *); 1419 int linux_brk(struct thread *, struct linux_brk_args *); 1455 int linux_kcmp(struct thread *, struct linux_kcmp_args *); 1463 int linux_bpf(struct thread *, struct linux_bpf_args *); [all …]
|
| /freebsd-14.2/sys/contrib/zstd/lib/common/ |
| H A D | threading.c | 40 ZSTD_pthread_t* const thread = (ZSTD_pthread_t*) arg; in worker() local 41 thread->arg = thread->start_routine(thread->arg); in worker() 45 int ZSTD_pthread_create(ZSTD_pthread_t* thread, const void* unused, in ZSTD_pthread_create() argument 49 thread->arg = arg; in ZSTD_pthread_create() 50 thread->start_routine = start_routine; in ZSTD_pthread_create() 51 thread->handle = (HANDLE) _beginthreadex(NULL, 0, worker, thread, 0, NULL); in ZSTD_pthread_create() 53 if (!thread->handle) in ZSTD_pthread_create() 59 int ZSTD_pthread_join(ZSTD_pthread_t thread, void **value_ptr) in ZSTD_pthread_join() argument 63 if (!thread.handle) return 0; in ZSTD_pthread_join() 65 result = WaitForSingleObject(thread.handle, INFINITE); in ZSTD_pthread_join() [all …]
|
| /freebsd-14.2/contrib/llvm-project/openmp/runtime/src/ |
| H A D | kmp_taskdeps.h | 33 __kmp_fast_free(thread, node); in __kmp_node_deref() 35 __kmp_thread_free(thread, node); in __kmp_node_deref() 47 __kmp_node_deref(thread, list->node); in __kmp_depnode_list_free() 49 __kmp_fast_free(thread, list); in __kmp_depnode_list_free() 51 __kmp_thread_free(thread, list); in __kmp_depnode_list_free() 71 __kmp_fast_free(thread, entry); in __kmp_dephash_free_entries() 86 __kmp_fast_free(thread, h); in __kmp_dephash_free() 88 __kmp_thread_free(thread, h); in __kmp_dephash_free() 195 __kmp_fast_free(thread, p); in __kmp_release_deps() 197 __kmp_thread_free(thread, p); in __kmp_release_deps() [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_thread_arg_retval.h | 47 if (uptr thread = fn()) in Create() local 48 CreateLocked(thread, detached, args); in Create() 52 Args GetArgs(uptr thread) const; 56 void Finish(uptr thread, void* retval); 65 DetachLocked(thread); in Detach() 70 void Join(uptr thread, const JoinFn& fn) { in Join() argument 74 auto gen = BeforeJoin(thread); in Join() 76 AfterJoin(thread, gen); in Join() 105 u32 BeforeJoin(uptr thread) const; 106 void AfterJoin(uptr thread, u32 gen); [all …]
|
| /freebsd-14.2/sys/contrib/ck/include/spinlock/ |
| H A D | hclh.h | 76 struct ck_spinlock_hclh *thread) in ck_spinlock_hclh_lock() argument 81 thread->wait = true; in ck_spinlock_hclh_lock() 82 thread->splice = false; in ck_spinlock_hclh_lock() 83 thread->cluster_id = (*local_queue)->cluster_id; in ck_spinlock_hclh_lock() 85 thread->previous = *local_queue; in ck_spinlock_hclh_lock() 91 previous = ck_pr_fas_ptr(local_queue, thread); in ck_spinlock_hclh_lock() 92 thread->previous = previous; in ck_spinlock_hclh_lock() 123 ck_spinlock_hclh_unlock(struct ck_spinlock_hclh **thread) in ck_spinlock_hclh_unlock() argument 134 previous = thread[0]->previous; in ck_spinlock_hclh_unlock() 138 ck_pr_store_uint(&(*thread)->wait, false); in ck_spinlock_hclh_unlock() [all …]
|
| /freebsd-14.2/sys/kern/ |
| H A D | p1003_1b.c | 112 struct thread *targettd; 138 kern_sched_setparam(struct thread *td, struct thread *targettd, 159 struct thread *targettd; 182 kern_sched_getparam(struct thread *td, struct thread *targettd, 202 struct thread *targettd; 227 kern_sched_setscheduler(struct thread *td, struct thread *targettd, 252 struct thread *targettd; 275 kern_sched_getscheduler(struct thread *td, struct thread *targettd, 321 sys_sched_rr_get_interval(struct thread *td, 338 struct thread *targettd; [all …]
|
| /freebsd-14.2/sys/fs/nfsserver/ |
| H A D | nfs_fha_new.c | 423 thread->st_p2 = 0; in fha_hash_entry_add_thread() 434 ("%d reqs on removed thread %p", thread->st_p2, thread)); in fha_hash_entry_remove_thread() 474 return (thread); in fha_hash_entry_choose_thread() 529 "fha: %p(%d)t", thread, thread->st_p2); in fha_hash_entry_choose_thread() 540 return (thread); in fha_hash_entry_choose_thread() 551 SVCTHREAD *thread; in fhanew_assign() local 588 thread->st_p2++; in fhanew_assign() 599 return (thread); in fhanew_assign() 630 thread->st_p2--; in fhanew_nd_complete() 632 thread->st_p2, thread)); in fhanew_nd_complete() [all …]
|