Home
last modified time | relevance | path

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

12345678910>>...75

/freebsd-14-stable/sys/sys/
HDsyscallsubr.h84 int kern___getcwd(struct thread *td, char *buf, enum uio_seg bufseg,
86 int kern_abort2(struct thread *td, const char *why, int nargs,
88 int kern_accept(struct thread *td, int s, struct sockaddr **name,
90 int kern_accept4(struct thread *td, int s, struct sockaddr **name,
92 int kern_accessat(struct thread *td, int fd, const char *path,
94 int kern_adjtime(struct thread *td, struct timeval *delta,
96 int kern_bindat(struct thread *td, int dirfd, int fd, struct sockaddr *sa);
97 int kern_break(struct thread *td, uintptr_t *addr);
98 int kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds,
100 int kern_cap_rights_limit(struct thread *td, int fd, cap_rights_t *rights);
[all …]
HDsched.h82 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);
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);
96 void sched_ithread_prio(struct thread *td, u_char prio);
97 void sched_lend_prio(struct thread *td, u_char prio);
98 void sched_lend_user_prio(struct thread *td, u_char pri);
[all …]
HDsysproto.h23 struct thread;
1896 int sys_exit(struct thread *, struct exit_args *);
1897 int sys_fork(struct thread *, struct fork_args *);
1898 int sys_read(struct thread *, struct read_args *);
1899 int sys_write(struct thread *, struct write_args *);
1900 int sys_open(struct thread *, struct open_args *);
1901 int sys_close(struct thread *, struct close_args *);
1902 int sys_wait4(struct thread *, struct wait4_args *);
1903 int sys_link(struct thread *, struct link_args *);
1904 int sys_unlink(struct thread *, struct unlink_args *);
[all …]
HDreg.h47 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 …]
HDproc.h196 struct thread;
236 struct thread { struct
239 TAILQ_ENTRY(thread) td_plist; /* (*) All threads in this proc. */ argument
240 TAILQ_ENTRY(thread) td_runq; /* (t) Run queue. */
242 TAILQ_ENTRY(thread) td_slpq; /* (t) Sleep queue. */ argument
243 struct thread *td_zombie; /* Zombie list linkage */
245 TAILQ_ENTRY(thread) td_lockq; /* (t) Lock queue. */
246 LIST_ENTRY(thread) td_hash; /* (d) Hash chain. */
396 struct thread t0st_thread; argument
400 struct mtx *thread_lock_block(struct thread *);
[all …]
HDptrace.h219 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 …]
/freebsd-14-stable/lib/libthr/thread/
HDthr_list.c75 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 = __thr_aligned_alloc_offset(_Alignof(struct pthread), in _thr_alloc()
156 if (thread == NULL) { in _thr_alloc()
160 memset(thread, 0, sizeof(*thread)); in _thr_alloc()
161 if ((thread->sleepqueue = _sleepq_alloc()) == NULL || in _thr_alloc()
162 (thread->wake_addr = _thr_alloc_wake_addr()) == NULL) { in _thr_alloc()
[all …]
HDthr_suspend_np.c48 _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 …]
HDthr_info.c47 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 …]
HDthr_resume_np.c43 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-14-stable/contrib/llvm-project/llvm/include/llvm/Support/
HDthread.h38 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-14-stable/contrib/llvm-project/libcxx/include/
HDthread15 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-14-stable/sys/contrib/ck/src/
HDck_hp.c221 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-14-stable/sys/i386/linux/
HDlinux_proto.h23 struct thread;
1732 int linux_exit(struct thread *, struct linux_exit_args *);
1733 int linux_fork(struct thread *, struct linux_fork_args *);
1734 int linux_write(struct thread *, struct linux_write_args *);
1735 int linux_open(struct thread *, struct linux_open_args *);
1736 int linux_waitpid(struct thread *, struct linux_waitpid_args *);
1737 int linux_creat(struct thread *, struct linux_creat_args *);
1738 int linux_link(struct thread *, struct linux_link_args *);
1739 int linux_unlink(struct thread *, struct linux_unlink_args *);
1740 int linux_execve(struct thread *, struct linux_execve_args *);
[all …]
/freebsd-14-stable/sys/amd64/linux32/
HDlinux32_proto.h23 struct thread;
1738 int linux_exit(struct thread *, struct linux_exit_args *);
1739 int linux_fork(struct thread *, struct linux_fork_args *);
1740 int linux_write(struct thread *, struct linux_write_args *);
1741 int linux_open(struct thread *, struct linux_open_args *);
1742 int linux_waitpid(struct thread *, struct linux_waitpid_args *);
1743 int linux_creat(struct thread *, struct linux_creat_args *);
1744 int linux_link(struct thread *, struct linux_link_args *);
1745 int linux_unlink(struct thread *, struct linux_unlink_args *);
1746 int linux_execve(struct thread *, struct linux_execve_args *);
[all …]
/freebsd-14-stable/sys/amd64/linux/
HDlinux_proto.h23 struct thread;
1440 int linux_write(struct thread *, struct linux_write_args *);
1441 int linux_open(struct thread *, struct linux_open_args *);
1442 int linux_newstat(struct thread *, struct linux_newstat_args *);
1443 int linux_newfstat(struct thread *, struct linux_newfstat_args *);
1444 int linux_newlstat(struct thread *, struct linux_newlstat_args *);
1445 int linux_poll(struct thread *, struct linux_poll_args *);
1446 int linux_lseek(struct thread *, struct linux_lseek_args *);
1447 int linux_mmap2(struct thread *, struct linux_mmap2_args *);
1448 int linux_mprotect(struct thread *, struct linux_mprotect_args *);
[all …]
/freebsd-14-stable/sys/arm64/include/
HDvfp.h69 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-stable/sys/arm64/linux/
HDlinux_proto.h23 struct thread;
1247 int linux_setxattr(struct thread *, struct linux_setxattr_args *);
1248 int linux_lsetxattr(struct thread *, struct linux_lsetxattr_args *);
1249 int linux_fsetxattr(struct thread *, struct linux_fsetxattr_args *);
1250 int linux_getxattr(struct thread *, struct linux_getxattr_args *);
1251 int linux_lgetxattr(struct thread *, struct linux_lgetxattr_args *);
1252 int linux_fgetxattr(struct thread *, struct linux_fgetxattr_args *);
1253 int linux_listxattr(struct thread *, struct linux_listxattr_args *);
1254 int linux_llistxattr(struct thread *, struct linux_llistxattr_args *);
1255 int linux_flistxattr(struct thread *, struct linux_flistxattr_args *);
[all …]
/freebsd-14-stable/sys/contrib/zstd/lib/common/
HDthreading.c40 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-stable/contrib/llvm-project/openmp/runtime/src/
HDkmp_taskdeps.h21 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-14-stable/sys/fs/nfsserver/
HDnfs_fha_new.c419 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-14-stable/sys/kern/
HDp1003_1b.c62 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-14-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
HDsanitizer_thread_arg_retval.h47 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);
60 void Detach(uptr thread, const DetachFn& fn) { in Detach() argument
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()
104 void CreateLocked(uptr thread, bool detached, const Args& args);
[all …]
/freebsd-14-stable/sys/contrib/ck/include/spinlock/
HDhclh.h76 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 …]
/freebsd-14-stable/contrib/llvm-project/lldb/source/Target/
HDThreadPlanStepInstruction.cpp23 ThreadPlanStepInstruction::ThreadPlanStepInstruction(Thread &thread, in ThreadPlanStepInstruction() argument
29 "Step over single instruction", thread, report_stop_vote, in ThreadPlanStepInstruction()
40 Thread &thread = GetThread(); in SetUpState() local
41 m_instruction_addr = thread.GetRegisterContext()->GetPC(0); in SetUpState()
42 StackFrameSP start_frame_sp(thread.GetStackFrameAtIndex(0)); in SetUpState()
48 StackFrameSP parent_frame_sp = thread.GetStackFrameAtIndex(1); in SetUpState()
100 Thread &thread = GetThread(); in IsPlanStale() local
101 StackID cur_frame_id = thread.GetStackFrameAtIndex(0)->GetStackID(); in IsPlanStale()
104 uint64_t pc = thread.GetRegisterContext()->GetPC(0); in IsPlanStale()
112 return (thread.GetRegisterContext()->GetPC(0) != m_instruction_addr); in IsPlanStale()
[all …]

12345678910>>...75