Home
last modified time | relevance | path

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

12345678910>>...73

/freebsd-13.1/sys/sys/
H A Dsyscallsubr.h112 int kern_close(struct thread *td, int fd);
160 int kern_getppid(struct thread *);
165 int kern_getsid(struct thread *td, pid_t pid);
256 int kern_sched_getparam(struct thread *td, struct thread *targettd,
258 int kern_sched_getscheduler(struct thread *td, struct thread *targettd,
260 int kern_sched_setparam(struct thread *td, struct thread *targettd,
262 int kern_sched_setscheduler(struct thread *td, struct thread *targettd,
266 int kern_sched_rr_get_interval_td(struct thread *td, struct thread *targettd,
312 int kern_sync(struct thread *td);
315 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);
95 u_int sched_estcpu(struct thread *td);
96 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 Dsysproto.h24 struct thread;
1857 int nosys(struct thread *, struct nosys_args *);
1859 int sys_fork(struct thread *, struct fork_args *);
1860 int sys_read(struct thread *, struct read_args *);
1862 int sys_open(struct thread *, struct open_args *);
1891 int sys_dup(struct thread *, struct dup_args *);
2392 int ostat(struct thread *, struct ostat_args *);
2400 int ommap(struct thread *, struct ommap_args *);
2401 int owait(struct thread *, struct owait_args *);
2405 int osend(struct thread *, struct osend_args *);
[all …]
H A Dproc.h197 struct thread;
230 struct thread { struct
387 struct thread t0st_thread; argument
1153 void cpu_switch(struct thread *, struct thread *, struct mtx *);
1154 void cpu_throw(struct thread *, struct thread *) __dead2;
1158 void cpu_exit(struct thread *);
1160 void cpu_copy_thread(struct thread *td, struct thread *td0);
1163 void cpu_fork(struct thread *, struct proc *, struct thread *, int);
1181 void thread_cow_get(struct thread *newtd, struct thread *td);
1212 struct thread *td; in curthread_pflags_set()
[all …]
H A Dptrace.h202 int ptrace_set_pc(struct thread *_td, unsigned long _addr);
203 int ptrace_single_step(struct thread *_td);
204 int ptrace_clear_single_step(struct thread *_td);
220 int proc_read_regs(struct thread *_td, struct reg *_reg);
221 int proc_write_regs(struct thread *_td, struct reg *_reg);
222 int proc_read_fpregs(struct thread *_td, struct fpreg *_fpreg);
223 int proc_write_fpregs(struct thread *_td, struct fpreg *_fpreg);
224 int proc_read_dbregs(struct thread *_td, struct dbreg *_dbreg);
225 int proc_write_dbregs(struct thread *_td, struct dbreg *_dbreg);
226 int proc_sstep(struct thread *_td);
[all …]
/freebsd-13.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.c53 free(thread->name); in thr_set_name_np()
54 thread->name = *tmp_name; in thr_set_name_np()
75 if (curthread == thread) { in _pthread_setname_np()
77 THR_THREAD_LOCK(curthread, thread); in _pthread_setname_np()
86 if (thread->state != PS_DEAD) { in _pthread_setname_np()
113 if (thread->name != NULL) in thr_get_name_np()
114 strlcpy(buf, thread->name, len); in thr_get_name_np()
128 if (curthread == thread) { in _pthread_getname_np()
129 THR_THREAD_LOCK(curthread, thread); in _pthread_getname_np()
130 thr_get_name_np(thread, buf, len); in _pthread_getname_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-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A Dthread.h38 class thread {
78 thread(thread &&Other) noexcept in thread() function
88 thread(const thread &) = delete;
95 thread &operator=(thread &&Other) noexcept {
144 thread::id thread::get_id() const noexcept { in get_id()
171 thread() : Thread(std::thread()) {}
172 thread(thread &&Other) noexcept
183 thread(const thread &) = delete;
187 thread &operator=(thread &&Other) noexcept {
227 thread(thread &&other) {} in thread() argument
[all …]
/freebsd-13.1/sys/arm/linux/
H A Dlinux_proto.h24 struct thread;
1234 int linux_exit(struct thread *, struct linux_exit_args *);
1235 int linux_fork(struct thread *, struct linux_fork_args *);
1236 int linux_open(struct thread *, struct linux_open_args *);
1238 int linux_link(struct thread *, struct linux_link_args *);
1252 int linux_nice(struct thread *, struct linux_nice_args *);
1253 int linux_kill(struct thread *, struct linux_kill_args *);
1257 int linux_pipe(struct thread *, struct linux_pipe_args *);
1259 int linux_brk(struct thread *, struct linux_brk_args *);
1416 int linux_bind(struct thread *, struct linux_bind_args *);
[all …]
/freebsd-13.1/contrib/llvm-project/libcxx/include/
H A Dthread20 class 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;
55 bool operator==(thread::id x, thread::id y) noexcept;
220 thread(const thread&);
221 thread& operator=(const thread&);
298 thread::thread(_Fp&& __f, _Args&&... __args)
[all …]
/freebsd-13.1/sys/i386/linux/
H A Dlinux_proto.h24 struct thread;
1635 int linux_exit(struct thread *, struct linux_exit_args *);
1636 int linux_fork(struct thread *, struct linux_fork_args *);
1637 int linux_open(struct thread *, struct linux_open_args *);
1640 int linux_link(struct thread *, struct linux_link_args *);
1644 int linux_time(struct thread *, struct linux_time_args *);
1648 int linux_stat(struct thread *, struct linux_stat_args *);
1669 int linux_brk(struct thread *, struct linux_brk_args *);
1721 int linux_ipc(struct thread *, struct linux_ipc_args *);
1878 int linux_tee(struct thread *, struct linux_tee_args *);
[all …]
/freebsd-13.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-13.1/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_taskdeps.h30 __kmp_fast_free(thread, node); in __kmp_node_deref()
32 __kmp_thread_free(thread, node); in __kmp_node_deref()
44 __kmp_node_deref(thread, list->node); in __kmp_depnode_list_free()
46 __kmp_fast_free(thread, list); in __kmp_depnode_list_free()
48 __kmp_thread_free(thread, list); in __kmp_depnode_list_free()
68 __kmp_fast_free(thread, entry); in __kmp_dephash_free_entries()
81 __kmp_fast_free(thread, h); in __kmp_dephash_free()
83 __kmp_thread_free(thread, h); in __kmp_dephash_free()
162 __kmp_fast_free(thread, p); in __kmp_release_deps()
164 __kmp_thread_free(thread, p); in __kmp_release_deps()
[all …]
/freebsd-13.1/sys/amd64/linux/
H A Dlinux_proto.h24 struct thread;
1380 int linux_open(struct thread *, struct linux_open_args *);
1387 int linux_brk(struct thread *, struct linux_brk_args *);
1395 int linux_pipe(struct thread *, struct linux_pipe_args *);
1419 int linux_bind(struct thread *, struct linux_bind_args *);
1427 int linux_fork(struct thread *, struct linux_fork_args *);
1430 int linux_exit(struct thread *, struct linux_exit_args *);
1432 int linux_kill(struct thread *, struct linux_kill_args *);
1453 int linux_link(struct thread *, struct linux_link_args *);
1599 int linux_tee(struct thread *, struct linux_tee_args *);
[all …]
/freebsd-13.1/sys/amd64/linux32/
H A Dlinux32_proto.h24 struct thread;
1642 int linux_exit(struct thread *, struct linux_exit_args *);
1643 int linux_fork(struct thread *, struct linux_fork_args *);
1644 int linux_open(struct thread *, struct linux_open_args *);
1647 int linux_link(struct thread *, struct linux_link_args *);
1651 int linux_time(struct thread *, struct linux_time_args *);
1655 int linux_stat(struct thread *, struct linux_stat_args *);
1675 int linux_brk(struct thread *, struct linux_brk_args *);
1727 int linux_ipc(struct thread *, struct linux_ipc_args *);
1883 int linux_tee(struct thread *, struct linux_tee_args *);
[all …]
/freebsd-13.1/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-13.1/sys/arm64/linux/
H A Dlinux_proto.h24 struct thread;
1213 int linux_dup3(struct thread *, struct linux_dup3_args *);
1214 int linux_fcntl(struct thread *, struct linux_fcntl_args *);
1253 int linux_tee(struct thread *, struct linux_tee_args *);
1266 int linux_exit(struct thread *, struct linux_exit_args *);
1300 int linux_kill(struct thread *, struct linux_kill_args *);
1353 int linux_bind(struct thread *, struct linux_bind_args *);
1366 int linux_brk(struct thread *, struct linux_brk_args *);
1402 int linux_kcmp(struct thread *, struct linux_kcmp_args *);
1410 int linux_bpf(struct thread *, struct linux_bpf_args *);
[all …]
/freebsd-13.1/sys/arm64/include/
H A Dreg.h92 int fill_regs(struct thread *, struct reg *);
93 int set_regs(struct thread *, struct reg *);
94 int fill_fpregs(struct thread *, struct fpreg *);
95 int set_fpregs(struct thread *, struct fpreg *);
96 int fill_dbregs(struct thread *, struct dbreg *);
97 int set_dbregs(struct thread *, struct dbreg *);
99 int fill_regs32(struct thread *, struct reg32 *);
100 int set_regs32(struct thread *, struct reg32 *);
101 int fill_fpregs32(struct thread *, struct fpreg32 *);
102 int set_fpregs32(struct thread *, struct fpreg32 *);
[all …]
/freebsd-13.1/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()
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-13.1/sys/kern/
H A Dp1003_1b.c115 struct thread *targettd;
141 kern_sched_setparam(struct thread *td, struct thread *targettd,
162 struct thread *targettd;
185 kern_sched_getparam(struct thread *td, struct thread *targettd,
205 struct thread *targettd;
230 kern_sched_setscheduler(struct thread *td, struct thread *targettd,
255 struct thread *targettd;
278 kern_sched_getscheduler(struct thread *td, struct thread *targettd,
324 sys_sched_rr_get_interval(struct thread *td,
341 struct thread *targettd;
[all …]
/freebsd-13.1/sys/fs/nfsserver/
H A Dnfs_fha_new.c435 thread->st_p2 = 0; in fha_hash_entry_add_thread()
446 ("%d reqs on removed thread %p", thread->st_p2, thread)); in fha_hash_entry_remove_thread()
486 return (thread); in fha_hash_entry_choose_thread()
541 "fha: %p(%d)t", thread, thread->st_p2); in fha_hash_entry_choose_thread()
552 return (thread); in fha_hash_entry_choose_thread()
563 SVCTHREAD *thread; in fhanew_assign() local
598 thread->st_p2++; in fhanew_assign()
608 return (thread); in fhanew_assign()
635 thread->st_p2--; in fhanew_nd_complete()
637 thread->st_p2, thread)); in fhanew_nd_complete()
[all …]
/freebsd-13.1/sys/compat/freebsd32/
H A Dfreebsd32_proto.h24 struct thread;
757 int freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
763 int freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
768 int freebsd32_fcntl(struct thread *, struct freebsd32_fcntl_args *);
772 int freebsd32_readv(struct thread *, struct freebsd32_readv_args *);
807 int freebsd32_jail(struct thread *, struct freebsd32_jail_args *);
832 int freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
834 int freebsd32_mmap(struct thread *, struct freebsd32_mmap_args *);
835 int freebsd32_lseek(struct thread *, struct freebsd32_lseek_args *);
839 int freebsd32_pread(struct thread *, struct freebsd32_pread_args *);
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Target/
H A DThreadPlanStepInstruction.cpp23 ThreadPlanStepInstruction::ThreadPlanStepInstruction(Thread &thread, in ThreadPlanStepInstruction() argument
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
104 uint64_t pc = thread.GetRegisterContext()->GetPC(0); in IsPlanStale()
129 Thread &thread = GetThread(); in ShouldStop() local
132 StackFrameSP cur_frame_sp = thread.GetStackFrameAtIndex(0); in ShouldStop()
168 thread.GetFrameWithStackID(m_stack_id); in ShouldStop()
[all …]

12345678910>>...73