| /freebsd-13-stable/sys/sys/ |
| HD | syscallsubr.h | 83 int kern___getcwd(struct thread *td, char *buf, enum uio_seg bufseg, 85 int kern_accept(struct thread *td, int s, struct sockaddr **name, 87 int kern_accept4(struct thread *td, int s, struct sockaddr **name, 89 int kern_accessat(struct thread *td, int fd, const char *path, 91 int kern_adjtime(struct thread *td, struct timeval *delta, 93 int kern_alternate_path(struct thread *td, const char *prefix, const char *path, 95 int kern_bindat(struct thread *td, int dirfd, int fd, struct sockaddr *sa); 96 int kern_break(struct thread *td, uintptr_t *addr); 97 int kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds, 99 int kern_cap_rights_limit(struct thread *td, int fd, cap_rights_t *rights); [all …]
|
| HD | sched.h | 82 void sched_exit(struct proc *p, struct thread *childtd); 83 void sched_fork(struct thread *td, struct thread *childtd); 84 void sched_fork_exit(struct thread *td); 85 void sched_class(struct thread *td, int class); 92 void sched_exit_thread(struct thread *td, struct thread *child); 93 u_int sched_estcpu(struct thread *td); 94 void sched_fork_thread(struct thread *td, struct thread *child); 95 void sched_lend_prio(struct thread *td, u_char prio); 96 void sched_lend_user_prio(struct thread *td, u_char pri); 97 void sched_lend_user_prio_cond(struct thread *td, u_char pri); [all …]
|
| HD | sysproto.h | 23 struct thread; 1871 int nosys(struct thread *, struct nosys_args *); 1872 void sys_sys_exit(struct thread *, struct sys_exit_args *); 1873 int sys_fork(struct thread *, struct fork_args *); 1874 int sys_read(struct thread *, struct read_args *); 1875 int sys_write(struct thread *, struct write_args *); 1876 int sys_open(struct thread *, struct open_args *); 1877 int sys_close(struct thread *, struct close_args *); 1878 int sys_wait4(struct thread *, struct wait4_args *); 1879 int sys_link(struct thread *, struct link_args *); [all …]
|
| HD | reg.h | 47 typedef bool (regset_get)(struct regset *, struct thread *, void *, 49 typedef bool (regset_set)(struct regset *, struct thread *, void *, size_t); 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 *); [all …]
|
| HD | proc.h | 198 struct thread; 231 struct thread { struct 234 TAILQ_ENTRY(thread) td_plist; /* (*) All threads in this proc. */ argument 235 TAILQ_ENTRY(thread) td_runq; /* (t) Run queue. */ 237 TAILQ_ENTRY(thread) td_slpq; /* (t) Sleep queue. */ argument 238 struct thread *td_zombie; /* Zombie list linkage */ 240 TAILQ_ENTRY(thread) td_lockq; /* (t) Lock queue. */ 241 LIST_ENTRY(thread) td_hash; /* (d) Hash chain. */ 388 struct thread t0st_thread; argument 392 struct mtx *thread_lock_block(struct thread *); [all …]
|
| HD | 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); 224 int cpu_ptrace(struct thread *_td, int _req, void *_addr, int _data); 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); [all …]
|
| HD | file.h | 50 struct thread; 101 struct thread *td); 103 struct ucred *active_cred, struct thread *td); 105 struct ucred *active_cred, struct thread *td); 107 struct ucred *active_cred, struct thread *td); 110 struct ucred *active_cred, struct thread *td); 111 typedef int fo_close_t(struct file *fp, struct thread *td); 113 struct ucred *active_cred, struct thread *td); 115 struct ucred *active_cred, struct thread *td); 118 off_t *sent, int flags, struct thread *td); [all …]
|
| /freebsd-13-stable/lib/libthr/thread/ |
| HD | thr_list.c | 75 static void thr_destroy(struct pthread *curthread, struct pthread *thread); 135 struct pthread *thread = NULL; in _thr_alloc() local 143 if ((thread = TAILQ_FIRST(&free_threadq)) != NULL) { in _thr_alloc() 144 TAILQ_REMOVE(&free_threadq, thread, tle); in _thr_alloc() 150 if (thread == NULL) { in _thr_alloc() 154 thread = calloc(1, sizeof(struct pthread)); in _thr_alloc() 155 if (thread == NULL) { in _thr_alloc() 159 if ((thread->sleepqueue = _sleepq_alloc()) == NULL || in _thr_alloc() 160 (thread->wake_addr = _thr_alloc_wake_addr()) == NULL) { in _thr_alloc() 161 thr_destroy(curthread, thread); in _thr_alloc() [all …]
|
| HD | 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() 58 else if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0)) in _pthread_suspend_np() 61 THR_THREAD_LOCK(curthread, thread); in _pthread_suspend_np() 62 suspend_common(curthread, thread, 1); in _pthread_suspend_np() 64 THR_THREAD_UNLOCK(curthread, thread); in _pthread_suspend_np() 67 _thr_ref_delete(curthread, thread); in _pthread_suspend_np() 107 struct pthread *thread; in _pthread_suspend_all_np() local 115 TAILQ_FOREACH(thread, &_thread_list, tle) { in _pthread_suspend_all_np() 116 if (thread != curthread) { in _pthread_suspend_all_np() [all …]
|
| HD | thr_info.c | 47 thr_set_name_np(struct pthread *thread, char **tmp_name) in thr_set_name_np() argument 50 free(thread->name); in thr_set_name_np() 51 thread->name = *tmp_name; in thr_set_name_np() 58 _pthread_setname_np(pthread_t thread, const char *name) in _pthread_setname_np() argument 72 if (curthread == thread) { in _pthread_setname_np() 74 THR_THREAD_LOCK(curthread, thread); in _pthread_setname_np() 75 if (thr_set_name(thread->tid, name) == -1) in _pthread_setname_np() 78 thr_set_name_np(thread, &tmp_name); in _pthread_setname_np() 79 THR_THREAD_UNLOCK(curthread, thread); in _pthread_setname_np() 82 if (_thr_find_thread(curthread, thread, 0) == 0) { in _pthread_setname_np() [all …]
|
| HD | thr_resume_np.c | 43 static void resume_common(struct pthread *thread); 47 _pthread_resume_np(pthread_t thread) in _pthread_resume_np() argument 53 if ((ret = _thr_find_thread(curthread, thread, /*include dead*/0)) == 0) { in _pthread_resume_np() 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 74 TAILQ_FOREACH(thread, &_thread_list, tle) { in _pthread_resume_all_np() 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() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
| HD | thread.h | 38 class thread { 72 thread() : Thread(native_handle_type()) {} in thread() function 73 thread(thread &&Other) noexcept in thread() function 77 explicit thread(Function &&f, Args &&...args) in thread() function 78 : thread(DefaultStackSize, f, args...) {} in thread() 81 explicit thread(std::optional<unsigned> StackSizeInBytes, Function &&f, 83 thread(const thread &) = delete; 85 ~thread() { in ~thread() 90 thread &operator=(thread &&Other) noexcept { 104 return std::thread::hardware_concurrency(); in hardware_concurrency() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/libcxx/include/ |
| HD | thread | 15 thread synopsis 20 class thread 26 thread() noexcept; 27 template <class F, class ...Args> explicit thread(F&& f, Args&&... args); 28 ~thread(); 30 thread(const thread&) = delete; 31 thread(thread&& t) noexcept; 33 thread& operator=(const thread&) = delete; 34 thread& operator=(thread&& t) noexcept; 36 void swap(thread& t) noexcept; [all …]
|
| /freebsd-13-stable/sys/arm/linux/ |
| HD | linux_proto.h | 23 struct thread; 1238 int linux_exit(struct thread *, struct linux_exit_args *); 1239 int linux_fork(struct thread *, struct linux_fork_args *); 1240 int linux_open(struct thread *, struct linux_open_args *); 1241 int linux_creat(struct thread *, struct linux_creat_args *); 1242 int linux_link(struct thread *, struct linux_link_args *); 1243 int linux_unlink(struct thread *, struct linux_unlink_args *); 1244 int linux_execve(struct thread *, struct linux_execve_args *); 1245 int linux_chdir(struct thread *, struct linux_chdir_args *); 1246 int linux_mknod(struct thread *, struct linux_mknod_args *); [all …]
|
| /freebsd-13-stable/sys/contrib/ck/src/ |
| HD | ck_hp.c | 221 ck_hp_reclaim(struct ck_hp_record *thread) in ck_hp_reclaim() argument 224 struct ck_hp *global = thread->global; in ck_hp_reclaim() 230 cache = thread->cache; in ck_hp_reclaim() 239 CK_STACK_FOREACH_SAFE(&thread->pending, entry, next) { in ck_hp_reclaim() 254 thread->n_pending -= 1; in ck_hp_reclaim() 260 CK_STACK_FIRST(&thread->pending) = CK_STACK_NEXT(entry); in ck_hp_reclaim() 264 thread->n_reclamations++; in ck_hp_reclaim() 271 ck_hp_retire(struct ck_hp_record *thread, in ck_hp_retire() argument 279 ck_stack_push_spnc(&thread->pending, &hazard->pending_entry); in ck_hp_retire() 281 thread->n_pending += 1; in ck_hp_retire() [all …]
|
| /freebsd-13-stable/sys/i386/linux/ |
| HD | linux_proto.h | 23 struct thread; 1691 int linux_exit(struct thread *, struct linux_exit_args *); 1692 int linux_fork(struct thread *, struct linux_fork_args *); 1693 int linux_open(struct thread *, struct linux_open_args *); 1694 int linux_waitpid(struct thread *, struct linux_waitpid_args *); 1695 int linux_creat(struct thread *, struct linux_creat_args *); 1696 int linux_link(struct thread *, struct linux_link_args *); 1697 int linux_unlink(struct thread *, struct linux_unlink_args *); 1698 int linux_execve(struct thread *, struct linux_execve_args *); 1699 int linux_chdir(struct thread *, struct linux_chdir_args *); [all …]
|
| /freebsd-13-stable/sys/amd64/linux32/ |
| HD | linux32_proto.h | 23 struct thread; 1702 int linux_exit(struct thread *, struct linux_exit_args *); 1703 int linux_fork(struct thread *, struct linux_fork_args *); 1704 int linux_open(struct thread *, struct linux_open_args *); 1705 int linux_waitpid(struct thread *, struct linux_waitpid_args *); 1706 int linux_creat(struct thread *, struct linux_creat_args *); 1707 int linux_link(struct thread *, struct linux_link_args *); 1708 int linux_unlink(struct thread *, struct linux_unlink_args *); 1709 int linux_execve(struct thread *, struct linux_execve_args *); 1710 int linux_chdir(struct thread *, struct linux_chdir_args *); [all …]
|
| /freebsd-13-stable/sys/amd64/linux/ |
| HD | linux_proto.h | 23 struct thread; 1396 int linux_open(struct thread *, struct linux_open_args *); 1397 int linux_newstat(struct thread *, struct linux_newstat_args *); 1398 int linux_newfstat(struct thread *, struct linux_newfstat_args *); 1399 int linux_newlstat(struct thread *, struct linux_newlstat_args *); 1400 int linux_poll(struct thread *, struct linux_poll_args *); 1401 int linux_lseek(struct thread *, struct linux_lseek_args *); 1402 int linux_mmap2(struct thread *, struct linux_mmap2_args *); 1403 int linux_mprotect(struct thread *, struct linux_mprotect_args *); 1404 int linux_brk(struct thread *, struct linux_brk_args *); [all …]
|
| /freebsd-13-stable/sys/contrib/zstd/lib/common/ |
| HD | 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-13-stable/sys/arm64/linux/ |
| HD | linux_proto.h | 23 struct thread; 1206 int linux_setxattr(struct thread *, struct linux_setxattr_args *); 1207 int linux_lsetxattr(struct thread *, struct linux_lsetxattr_args *); 1208 int linux_fsetxattr(struct thread *, struct linux_fsetxattr_args *); 1209 int linux_getxattr(struct thread *, struct linux_getxattr_args *); 1210 int linux_lgetxattr(struct thread *, struct linux_lgetxattr_args *); 1211 int linux_fgetxattr(struct thread *, struct linux_fgetxattr_args *); 1212 int linux_listxattr(struct thread *, struct linux_listxattr_args *); 1213 int linux_llistxattr(struct thread *, struct linux_llistxattr_args *); 1214 int linux_flistxattr(struct thread *, struct linux_flistxattr_args *); [all …]
|
| /freebsd-13-stable/contrib/llvm-project/openmp/runtime/src/ |
| HD | kmp_taskdeps.h | 21 static inline void __kmp_node_deref(kmp_info_t *thread, kmp_depnode_t *node) { in __kmp_node_deref() argument 33 __kmp_fast_free(thread, node); in __kmp_node_deref() 35 __kmp_thread_free(thread, node); in __kmp_node_deref() 40 static inline void __kmp_depnode_list_free(kmp_info_t *thread, in __kmp_depnode_list_free() argument 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() 56 static inline void __kmp_dephash_free_entries(kmp_info_t *thread, in __kmp_dephash_free_entries() argument 63 __kmp_depnode_list_free(thread, entry->last_set); in __kmp_dephash_free_entries() 64 __kmp_depnode_list_free(thread, entry->prev_set); in __kmp_dephash_free_entries() [all …]
|
| /freebsd-13-stable/sys/fs/nfsserver/ |
| HD | nfs_fha_new.c | 419 fha_hash_entry_add_thread(struct fha_hash_entry *fhe, SVCTHREAD *thread) in fha_hash_entry_add_thread() argument 423 thread->st_p2 = 0; in fha_hash_entry_add_thread() 424 LIST_INSERT_HEAD(&fhe->threads, thread, st_alink); in fha_hash_entry_add_thread() 429 fha_hash_entry_remove_thread(struct fha_hash_entry *fhe, SVCTHREAD *thread) in fha_hash_entry_remove_thread() argument 433 KASSERT(thread->st_p2 == 0, in fha_hash_entry_remove_thread() 434 ("%d reqs on removed thread %p", thread->st_p2, thread)); in fha_hash_entry_remove_thread() 435 LIST_REMOVE(thread, st_alink); in fha_hash_entry_remove_thread() 461 SVCTHREAD *thread, *min_thread = NULL; in fha_hash_entry_choose_thread() local 465 LIST_FOREACH(thread, &fhe->threads, st_alink) { in fha_hash_entry_choose_thread() 466 req_count = thread->st_p2; in fha_hash_entry_choose_thread() [all …]
|
| /freebsd-13-stable/sys/compat/freebsd32/ |
| HD | freebsd32_proto.h | 23 struct thread; 756 int freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *); 757 int freebsd32_ptrace(struct thread *, struct freebsd32_ptrace_args *); 758 int freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *); 759 int freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *); 760 int freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *); 761 int freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *); 762 int freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *); 763 int freebsd32_execve(struct thread *, struct freebsd32_execve_args *); 764 int freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *); [all …]
|
| /freebsd-13-stable/sys/kern/ |
| HD | p1003_1b.c | 62 syscall_not_present(struct thread *td, const char *s, struct nosys_args *uap) in syscall_not_present() 110 sys_sched_setparam(struct thread *td, struct sched_setparam_args *uap) 112 struct thread *targettd; 138 kern_sched_setparam(struct thread *td, struct thread *targettd, 155 sys_sched_getparam(struct thread *td, struct sched_getparam_args *uap) 159 struct thread *targettd; 182 kern_sched_getparam(struct thread *td, struct thread *targettd, 198 sys_sched_setscheduler(struct thread *td, struct sched_setscheduler_args *uap) 202 struct thread *targettd; 227 kern_sched_setscheduler(struct thread *td, struct thread *targettd, [all …]
|
| /freebsd-13-stable/sys/contrib/ck/include/spinlock/ |
| HD | 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() 98 ck_pr_load_int(&previous->cluster_id) == thread->cluster_id && in ck_spinlock_hclh_lock() 103 if (ck_pr_load_int(&previous->cluster_id) == thread->cluster_id && in ck_spinlock_hclh_lock() 123 ck_spinlock_hclh_unlock(struct ck_spinlock_hclh **thread) in ck_spinlock_hclh_unlock() argument [all …]
|