Home
last modified time | relevance | path

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

12345678910>>...75

/freebsd-src/sys/sys/
H A Dsyscallsubr.h85 int kern___getcwd(struct thread *td, char *buf, enum uio_seg bufseg,
87 int kern_abort2(struct thread *td, const char *why, int nargs,
89 int kern_accept(struct thread *td, int s, struct sockaddr *sa,
91 int kern_accept4(struct thread *td, int s, struct sockaddr *sa,
93 int kern_accessat(struct thread *td, int fd, const char *path,
95 int kern_adjtime(struct thread *td, struct timeval *delta,
97 int kern_bindat(struct thread *td, int dirfd, int fd, struct sockaddr *sa);
98 int kern_break(struct thread *td, uintptr_t *addr);
99 int kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds,
101 int kern_cap_rights_limit(struct thread *t
[all...]
H A Dsched.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 …]
H A Dsysproto.h23 struct thread;
1893 int sys_exit(struct thread *, struct exit_args *);
1894 int sys_fork(struct thread *, struct fork_args *);
1895 int sys_read(struct thread *, struct read_args *);
1896 int sys_write(struct thread *, struct write_args *);
1897 int sys_open(struct thread *, struct open_args *);
1898 int sys_close(struct thread *, struct close_args *);
1899 int sys_wait4(struct thread *, struct wait4_args *);
1900 int sys_link(struct thread *, struct link_args *);
1901 int sys_unlink(struct thread *, struc
[all...]
H A Dreg.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 …]
H A Dproc.h131 * This structure contains the information needed to manage a thread of
164 * t - thread lock
194 struct thread;
230 * Kernel runnable context (thread).
234 struct thread { struct
237 TAILQ_ENTRY(thread) td_plist; /* (*) All threads in this proc. */ argument
238 TAILQ_ENTRY(thread) td_runq; /* (t) Run queue. */
240 TAILQ_ENTRY(thread) td_slpq; /* (t) Sleep queue. */ argument
241 struct thread *td_zombie; /* Zombie list linkage */
243 TAILQ_ENTRY(thread) td_lock
256 td_allocdomainthread global() argument
257 td_base_ithread_prithread global() argument
265 td_pflagsthread global() argument
266 td_pflags2thread global() argument
279 td_blockedthread global() argument
280 td_locknamethread global() argument
282 td_sleeplocksthread global() argument
283 td_intr_nesting_levelthread global() argument
284 td_pinnedthread global() argument
285 td_realucredthread global() argument
286 td_ucredthread global() argument
287 td_limitthread global() argument
288 td_slptickthread global() argument
289 td_blktickthread global() argument
290 td_swvoltickthread global() argument
291 td_swinvoltickthread global() argument
292 td_cowthread global() argument
293 td_ruthread global() argument
294 td_ruxthread global() argument
295 td_incruntimethread global() argument
296 td_runtimethread global() argument
297 td_pticksthread global() argument
298 td_sticksthread global() argument
299 td_iticksthread global() argument
300 td_uticksthread global() argument
301 td_intrvalthread global() argument
302 td_oldsigmaskthread global() argument
303 td_generationthread global() argument
327 td_ucredrefthread global() argument
347 td_pri_classthread global() argument
357 td_statethread global() argument
372 td_mdthread global() argument
375 td_dtracethread global() argument
396 td_ktr_io_limthread global() argument
[all...]
H A Dptrace.h217 int ptrace_set_pc(struct thread *_td, unsigned long _addr);
218 int ptrace_single_step(struct thread *_td);
219 int ptrace_clear_single_step(struct thread *_td);
222 int cpu_ptrace(struct thread *_td, int _req, void *_addr, int _data);
235 int proc_read_regs(struct thread *_td, struct reg *_reg);
236 int proc_write_regs(struct thread *_td, struct reg *_reg);
237 int proc_read_fpregs(struct thread *_td, struct fpreg *_fpreg);
238 int proc_write_fpregs(struct thread *_td, struct fpreg *_fpreg);
239 int proc_read_dbregs(struct thread *_td, struct dbreg *_dbreg);
240 int proc_write_dbregs(struct thread *_td, struct dbreg *_dbreg);
[all …]
H A Dfile.h51 struct thread;
102 struct thread *td);
104 struct ucred *active_cred, struct thread *td);
106 struct ucred *active_cred, struct thread *td);
108 struct ucred *active_cred, struct thread *td);
112 typedef int fo_close_t(struct file *fp, struct thread *td);
114 struct ucred *active_cred, struct thread *td);
116 struct ucred *active_cred, struct thread *td);
119 off_t *sent, int flags, struct thread *td);
121 struct thread *t
[all...]
/freebsd-src/lib/libthr/thread/
H A Dthr_list.c74 static void thr_destroy(struct pthread *curthread, struct pthread *thread);
119 * XXX we don't free initial thread, because there might in _thr_gc()
120 * have some code referencing initial thread. in _thr_gc()
123 DBG_MSG("Initial thread won't be freed\n"); in _thr_gc()
134 struct pthread *thread = NULL; in _thr_alloc() local
142 if ((thread = TAILQ_FIRST(&free_threadq)) != NULL) { in _thr_alloc()
143 TAILQ_REMOVE(&free_threadq, thread, tle); in _thr_alloc()
149 if (thread == NULL) { in _thr_alloc()
153 thread = __thr_calloc(1, sizeof(struct pthread)); in _thr_alloc()
154 if (thread in _thr_alloc()
186 _thr_free(struct pthread * curthread,struct pthread * thread) _thr_free() argument
219 thr_destroy(struct pthread * curthread __unused,struct pthread * thread) thr_destroy() argument
233 _thr_link(struct pthread * curthread,struct pthread * thread) _thr_link() argument
245 _thr_unlink(struct pthread * curthread,struct pthread * thread) _thr_unlink() argument
254 _thr_hash_add(struct pthread * thread) _thr_hash_add() argument
263 _thr_hash_remove(struct pthread * thread) _thr_hash_remove() argument
269 _thr_hash_find(struct pthread * thread) _thr_hash_find() argument
288 _thr_ref_add(struct pthread * curthread,struct pthread * thread,int include_dead) _thr_ref_add() argument
308 _thr_ref_delete(struct pthread * curthread,struct pthread * thread) _thr_ref_delete() argument
318 _thr_try_gc(struct pthread * curthread,struct pthread * thread) _thr_try_gc() argument
339 _thr_find_thread(struct pthread * curthread,struct pthread * thread,int include_dead) _thr_find_thread() argument
[all...]
H A Dthr_suspend_np.c47 /* Suspend a thread: */
49 _pthread_suspend_np(pthread_t thread) in _pthread_suspend_np()
54 /* Suspending the current thread doesn't make sense. */ in _pthread_suspend_np()
55 if (thread == _get_curthread()) in _pthread_suspend_np()
58 /* Add a reference to the thread: */ in _pthread_suspend_np()
59 else if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0)) in _pthread_suspend_np()
62 THR_THREAD_LOCK(curthread, thread); in _pthread_suspend_np()
63 suspend_common(curthread, thread, 1); in _pthread_suspend_np()
65 THR_THREAD_UNLOCK(curthread, thread); in _pthread_suspend_np()
68 _thr_ref_delete(curthread, thread); in _pthread_suspend_np()
48 _pthread_suspend_np(pthread_t thread) _pthread_suspend_np() argument
107 struct pthread *thread; _pthread_suspend_all_np() local
159 suspend_common(struct pthread * curthread,struct pthread * thread,int waitok) suspend_common() argument
[all...]
H A Dthr_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 …]
H A Dthr_resume_np.c44 static void resume_common(struct pthread *thread);
46 /* Resume a thread: */
48 _pthread_resume_np(pthread_t thread) in _pthread_resume_np()
53 /* Add a reference to the thread: */ in _pthread_resume_np()
54 if ((ret = _thr_find_thread(curthread, thread, /*include dead*/0)) == 0) { in _pthread_resume_np()
56 resume_common(thread); in _pthread_resume_np()
57 THR_THREAD_UNLOCK(curthread, thread); in _pthread_resume_np()
66 struct pthread *thread; in _pthread_resume_all_np()
72 /* Take the thread list lock: */ in _pthread_resume_all_np()
75 TAILQ_FOREACH(thread, in _pthread_resume_all_np()
47 _pthread_resume_np(pthread_t thread) _pthread_resume_np() argument
65 struct pthread *thread; _pthread_resume_all_np() local
90 resume_common(struct pthread * thread) resume_common() argument
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Support/
H A Dthread.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-src/contrib/llvm-project/libcxx/include/
H A Dthread15 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
[all...]
/freebsd-src/sys/contrib/ck/src/
H A Dck_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-src/sys/i386/linux/
H A Dlinux_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-src/sys/amd64/linux32/
H A Dlinux32_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-src/sys/amd64/linux/
H A Dlinux_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-src/sys/arm64/linux/
H A Dlinux_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-src/sys/contrib/zstd/lib/common/
H A Dthreading.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-src/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_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-src/sys/contrib/ck/include/spinlock/
H A Dhclh.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-src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_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-src/sys/fs/nfsserver/
H A Dnfs_fha_new.c418 fha_hash_entry_add_thread(struct fha_hash_entry *fhe, SVCTHREAD *thread) in fha_hash_entry_add_thread() argument
422 thread->st_p2 = 0; in fha_hash_entry_add_thread()
423 LIST_INSERT_HEAD(&fhe->threads, thread, st_alink); in fha_hash_entry_add_thread()
428 fha_hash_entry_remove_thread(struct fha_hash_entry *fhe, SVCTHREAD *thread) in fha_hash_entry_remove_thread() argument
432 KASSERT(thread->st_p2 == 0, in fha_hash_entry_remove_thread()
433 ("%d reqs on removed thread %p", thread->st_p2, thread)); in fha_hash_entry_remove_thread()
434 LIST_REMOVE(thread, st_alink); in fha_hash_entry_remove_thread()
460 SVCTHREAD *thread, *min_thread = NULL; in fha_hash_entry_choose_thread() local
464 LIST_FOREACH(thread, &fhe->threads, st_alink) { in fha_hash_entry_choose_thread()
465 req_count = thread->st_p2; in fha_hash_entry_choose_thread()
[all …]
/freebsd-src/sys/kern/
H A Dp1003_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-src/contrib/llvm-project/lldb/source/Target/
H A DThreadPlanStepInstruction.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