Home
last modified time | relevance | path

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

12345678910>>...65

/trueos/sys/sys/
HDsyscallsubr.h60 int kern___getcwd(struct thread *td, char *buf, enum uio_seg bufseg,
62 int kern_accept(struct thread *td, int s, struct sockaddr **name,
64 int kern_accept4(struct thread *td, int s, struct sockaddr **name,
66 int kern_access(struct thread *td, char *path, enum uio_seg pathseg,
68 int kern_accessat(struct thread *td, int fd, char *path,
70 int kern_adjtime(struct thread *td, struct timeval *delta,
72 int kern_alternate_path(struct thread *td, const char *prefix, const char *path,
74 int kern_bind(struct thread *td, int fd, struct sockaddr *sa);
75 int kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds,
77 int kern_chdir(struct thread *td, char *path, enum uio_seg pathseg);
[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);
92 void sched_exit_thread(struct thread *td, struct thread *child);
93 void sched_fork_thread(struct thread *td, struct thread *child);
94 void sched_lend_prio(struct thread *td, u_char prio);
95 void sched_lend_user_prio(struct thread *td, u_char pri);
96 fixpt_t sched_pctcpu(struct thread *td);
97 void sched_prio(struct thread *td, u_char prio);
[all …]
HDsysproto.h26 struct thread;
1979 …char thread_l_[PADL_(mach_port_name_t)]; mach_port_name_t thread; char thread_r_[PADR_(mach_port_n… member
2084 int nosys(struct thread *, struct nosys_args *);
2085 void sys_sys_exit(struct thread *, struct sys_exit_args *);
2086 int sys_fork(struct thread *, struct fork_args *);
2087 int sys_read(struct thread *, struct read_args *);
2088 int sys_write(struct thread *, struct write_args *);
2089 int sys_open(struct thread *, struct open_args *);
2090 int sys_close(struct thread *, struct close_args *);
2091 int sys_wait4(struct thread *, struct wait4_args *);
[all …]
HDproc.h174 struct thread;
204 struct thread { struct
207 TAILQ_ENTRY(thread) td_plist; /* (*) All threads in this proc. */ argument
208 TAILQ_ENTRY(thread) td_runq; /* (t) Run queue. */
209 TAILQ_ENTRY(thread) td_slpq; /* (t) Sleep queue. */
210 TAILQ_ENTRY(thread) td_lockq; /* (t) Lock queue. */
211 LIST_ENTRY(thread) td_hash; /* (d) Hash chain. */
326 struct mtx *thread_lock_block(struct thread *); argument
327 void thread_lock_unblock(struct thread *, struct mtx *);
328 void thread_lock_set(struct thread *, struct mtx *);
[all …]
HDfile.h47 struct thread;
94 struct thread *td);
96 struct ucred *active_cred, struct thread *td);
98 struct ucred *active_cred, struct thread *td);
100 struct ucred *active_cred, struct thread *td);
103 struct ucred *active_cred, struct thread *td);
104 typedef int fo_close_t(struct file *fp, struct thread *td);
106 struct ucred *active_cred, struct thread *td);
108 struct ucred *active_cred, struct thread *td);
111 off_t *sent, int flags, int kflags, struct thread *td);
[all …]
HDptrace.h141 int ptrace_set_pc(struct thread *_td, unsigned long _addr);
142 int ptrace_single_step(struct thread *_td);
143 int ptrace_clear_single_step(struct thread *_td);
146 int cpu_ptrace(struct thread *_td, int _req, void *_addr, int _data);
159 int proc_read_regs(struct thread *_td, struct reg *_reg);
160 int proc_write_regs(struct thread *_td, struct reg *_reg);
161 int proc_read_fpregs(struct thread *_td, struct fpreg *_fpreg);
162 int proc_write_fpregs(struct thread *_td, struct fpreg *_fpreg);
163 int proc_read_dbregs(struct thread *_td, struct dbreg *_dbreg);
164 int proc_write_dbregs(struct thread *_td, struct dbreg *_dbreg);
[all …]
/trueos/lib/libthr/thread/
HDthr_list.c73 static void thr_destroy(struct pthread *curthread, struct pthread *thread);
133 struct pthread *thread = NULL; in _thr_alloc() local
141 if ((thread = TAILQ_FIRST(&free_threadq)) != NULL) { in _thr_alloc()
142 TAILQ_REMOVE(&free_threadq, thread, tle); in _thr_alloc()
148 if (thread == NULL) { in _thr_alloc()
152 thread = calloc(1, sizeof(struct pthread)); in _thr_alloc()
153 if (thread == NULL) { in _thr_alloc()
157 if ((thread->sleepqueue = _sleepq_alloc()) == NULL || in _thr_alloc()
158 (thread->wake_addr = _thr_alloc_wake_addr()) == NULL) { in _thr_alloc()
159 thr_destroy(curthread, thread); 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_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 …]
/trueos/sys/compat/mach/
HDmach_thread.c36 _intr_tdsigwakeup(struct thread *td, int intrval) in _intr_tdsigwakeup()
65 struct thread *td = curthread; in mach_thread_switch()
104 thread_go(thread_t thread) in thread_go() argument
107 struct mtx *block_lock = thread->ith_block_lock_data; in thread_go()
109 MPASS(thread->ith_state != MACH_SEND_IN_PROGRESS && in thread_go()
110 thread->ith_state != MACH_RCV_IN_PROGRESS && in thread_go()
111 thread->ith_state != MACH_RCV_IN_PROGRESS_TIMED); in thread_go()
117 wakeup(thread); in thread_go()
125 thread_t thread = current_thread(); in thread_block() local
128 MPASS(curthread == thread->ith_td); in thread_block()
[all …]
HDmach_traps.c62 sys_clock_sleep_trap(struct thread *td __unused, struct clock_sleep_trap_args *uap) in sys_clock_sleep_trap()
70 sys_mach_timebase_info(struct thread *td __unused, struct mach_timebase_info_args *uap) in sys_mach_timebase_info()
77 sys_mach_msg_overwrite_trap(struct thread *td __unused, struct mach_msg_overwrite_trap_args *uap) in sys_mach_msg_overwrite_trap()
87 sys_mach_msg_trap(struct thread *td __unused, struct mach_msg_trap_args *uap) in sys_mach_msg_trap()
97 sys_semaphore_wait_trap(struct thread *td, struct semaphore_wait_trap_args *uap)
101 sys_semaphore_signal_trap(struct thread *td, struct semaphore_signal_trap_args *uap)
104 sys_semaphore_wait_signal_trap(struct thread *td, struct semaphore_wait_signal_trap_args *uap)
108 sys_semaphore_signal_thread_trap(struct thread *td, struct semaphore_signal_thread_trap_args *uap)
112 sys_semaphore_signal_all_trap(struct thread *td, struct semaphore_signal_all_trap_args *uap)
116 sys_task_for_pid(struct thread *td, struct task_for_pid_args *uap)
[all …]
/trueos/lib/libkse/thread/
HDthr_kern.c157 static void kse_switchout_thread(struct kse *kse, struct pthread *thread);
165 static void kse_waitq_insert(struct pthread *thread);
167 static struct kse_mailbox *kse_wakeup_one(struct pthread *thread);
169 static void thr_link(struct pthread *thread);
172 static int thr_timedout(struct pthread *thread, struct timespec *curtime);
173 static void thr_unlink(struct pthread *thread);
174 static void thr_destroy(struct pthread *curthread, struct pthread *thread);
175 static void thread_gc(struct pthread *thread);
176 static void kse_gc(struct pthread *thread);
177 static void kseg_gc(struct pthread *thread);
[all …]
HDthr_suspend_np.c38 int _pthread_suspend_np(pthread_t thread);
41 static void suspend_common(struct pthread *thread);
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_SCHED_LOCK(curthread, thread); in _pthread_suspend_np()
62 suspend_common(thread); in _pthread_suspend_np()
64 THR_SCHED_UNLOCK(curthread, thread); in _pthread_suspend_np()
67 _thr_ref_delete(curthread, thread); in _pthread_suspend_np()
76 struct pthread *thread; in _pthread_suspend_all_np() local
[all …]
HDthr_resume_np.c38 int _pthread_resume_np(pthread_t thread);
49 _pthread_resume_np(pthread_t thread) in _pthread_resume_np() argument
56 if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0)) == 0) { in _pthread_resume_np()
58 THR_SCHED_LOCK(curthread, thread); in _pthread_resume_np()
59 kmbx = resume_common(thread); in _pthread_resume_np()
60 THR_SCHED_UNLOCK(curthread, thread); in _pthread_resume_np()
61 _thr_ref_delete(curthread, thread); in _pthread_resume_np()
72 struct pthread *thread; in _pthread_resume_all_np() local
80 TAILQ_FOREACH(thread, &_thread_list, tle) { in _pthread_resume_all_np()
81 if (thread != curthread) { in _pthread_resume_all_np()
[all …]
/trueos/sys/sys/mach/ipc/
HDipc_thread.h97 #define ipc_thread_links_init(thread) \ argument
99 (thread)->ith_next = (thread); \
100 (thread)->ith_prev = (thread); \
112 #define ipc_thread_rmqueue_first_macro(queue, thread) \ argument
116 assert((queue)->ithq_base == (thread)); \
118 _next = (thread)->ith_next; \
119 if (_next == (thread)) { \
120 assert((thread)->ith_prev == (thread)); \
123 register ipc_thread_t _prev = (thread)->ith_prev; \
128 ipc_thread_links_init(thread); \
[all …]
/trueos/contrib/gcc/cp/
HDcfns.gperf47 #fclose -- POSIX thread cancellation point
50 #fflush -- POSIX thread cancellation point
51 #fgetc -- POSIX thread cancellation point
52 #fgetpos -- POSIX thread cancellation point
53 #fgets -- POSIX thread cancellation point
54 #fgetwc -- POSIX thread cancellation point
55 #fgetws -- POSIX thread cancellation point
58 #fopen -- POSIX thread cancellation point
59 #fprintf -- POSIX thread cancellation point
60 #fputc -- POSIX thread cancellation point
[all …]
/trueos/sys/i386/linux/
HDlinux_proto.h24 struct thread;
1122 int linux_fork(struct thread *, struct linux_fork_args *);
1123 int linux_open(struct thread *, struct linux_open_args *);
1124 int linux_waitpid(struct thread *, struct linux_waitpid_args *);
1125 int linux_creat(struct thread *, struct linux_creat_args *);
1126 int linux_link(struct thread *, struct linux_link_args *);
1127 int linux_unlink(struct thread *, struct linux_unlink_args *);
1128 int linux_execve(struct thread *, struct linux_execve_args *);
1129 int linux_chdir(struct thread *, struct linux_chdir_args *);
1130 int linux_time(struct thread *, struct linux_time_args *);
[all …]
/trueos/sys/amd64/linux32/
HDlinux32_proto.h26 struct thread;
1110 int linux_fork(struct thread *, struct linux_fork_args *);
1111 int linux_open(struct thread *, struct linux_open_args *);
1112 int linux_waitpid(struct thread *, struct linux_waitpid_args *);
1113 int linux_creat(struct thread *, struct linux_creat_args *);
1114 int linux_link(struct thread *, struct linux_link_args *);
1115 int linux_unlink(struct thread *, struct linux_unlink_args *);
1116 int linux_execve(struct thread *, struct linux_execve_args *);
1117 int linux_chdir(struct thread *, struct linux_chdir_args *);
1118 int linux_time(struct thread *, struct linux_time_args *);
[all …]
/trueos/contrib/gdb/gdb/
HDi386gnu-nat.c65 fetch_fpregs (struct proc *thread) in fetch_fpregs() argument
71 err = thread_get_state (thread->port, i386_FLOAT_STATE, in fetch_fpregs()
76 proc_string (thread)); in fetch_fpregs()
117 struct proc *thread; in gnu_fetch_registers() local
122 thread = inf_tid_to_thread (current_inferior, PIDGET (inferior_ptid)); in gnu_fetch_registers()
123 if (!thread) in gnu_fetch_registers()
132 state = proc_get_state (thread, 0); in gnu_fetch_registers()
136 proc_string (thread)); in gnu_fetch_registers()
144 proc_debug (thread, "fetching all register"); in gnu_fetch_registers()
148 thread->fetched_regs = ~0; in gnu_fetch_registers()
[all …]
HDgnu-nat.c163 struct proc *thread; /* The thread in question. */ member
337 else if (proc == inf->wait.thread && inf->wait.exc.reply && !force) in proc_abort()
614 if (proc == inf->wait.thread) in _proc_free()
648 inf->wait.thread = 0; in make_inf()
677 inf->wait.thread = 0; in inf_clear_wait()
919 struct proc *thread; in inf_update_suspends() local
932 for (thread = inf->threads; thread; thread = thread->next) in inf_update_suspends()
933 thread_running |= proc_update_sc (thread); in inf_update_suspends()
961 struct proc *thread = inf->threads; in inf_tid_to_thread() local
963 while (thread) in inf_tid_to_thread()
[all …]
/trueos/contrib/libc++/include/
Dthread2 //===--------------------------- thread -----------------------------------===//
16 thread synopsis
23 class thread
29 thread() noexcept;
30 template <class F, class ...Args> explicit thread(F&& f, Args&&... args);
31 ~thread();
33 thread(const thread&) = delete;
34 thread(thread&& t) noexcept;
36 thread& operator=(const thread&) = delete;
37 thread& operator=(thread&& t) noexcept;
[all …]
/trueos/sys/nfs/
HDnfs_fha.c253 fha_hash_entry_add_thread(struct fha_hash_entry *fhe, SVCTHREAD *thread) in fha_hash_entry_add_thread() argument
257 thread->st_p2 = 0; in fha_hash_entry_add_thread()
258 LIST_INSERT_HEAD(&fhe->threads, thread, st_alink); in fha_hash_entry_add_thread()
263 fha_hash_entry_remove_thread(struct fha_hash_entry *fhe, SVCTHREAD *thread) in fha_hash_entry_remove_thread() argument
267 KASSERT(thread->st_p2 == 0, in fha_hash_entry_remove_thread()
268 ("%d reqs on removed thread %p", thread->st_p2, thread)); in fha_hash_entry_remove_thread()
269 LIST_REMOVE(thread, st_alink); in fha_hash_entry_remove_thread()
295 SVCTHREAD *thread, *min_thread = NULL; in fha_hash_entry_choose_thread() local
302 LIST_FOREACH(thread, &fhe->threads, st_alink) { in fha_hash_entry_choose_thread()
303 req_count = thread->st_p2; in fha_hash_entry_choose_thread()
[all …]
/trueos/sys/i386/ibcs2/
HDibcs2_proto.h22 struct thread;
277 int ibcs2_read(struct thread *, struct ibcs2_read_args *);
278 int ibcs2_open(struct thread *, struct ibcs2_open_args *);
279 int ibcs2_wait(struct thread *, struct ibcs2_wait_args *);
280 int ibcs2_creat(struct thread *, struct ibcs2_creat_args *);
281 int ibcs2_unlink(struct thread *, struct ibcs2_unlink_args *);
282 int ibcs2_execv(struct thread *, struct ibcs2_execv_args *);
283 int ibcs2_chdir(struct thread *, struct ibcs2_chdir_args *);
284 int ibcs2_time(struct thread *, struct ibcs2_time_args *);
285 int ibcs2_mknod(struct thread *, struct ibcs2_mknod_args *);
[all …]
/trueos/sys/compat/svr4/
HDsvr4_proto.h22 struct thread;
409 int svr4_sys_open(struct thread *, struct svr4_sys_open_args *);
410 int svr4_sys_wait(struct thread *, struct svr4_sys_wait_args *);
411 int svr4_sys_creat(struct thread *, struct svr4_sys_creat_args *);
412 int svr4_sys_execv(struct thread *, struct svr4_sys_execv_args *);
413 int svr4_sys_time(struct thread *, struct svr4_sys_time_args *);
414 int svr4_sys_mknod(struct thread *, struct svr4_sys_mknod_args *);
415 int svr4_sys_break(struct thread *, struct svr4_sys_break_args *);
416 int svr4_sys_stat(struct thread *, struct svr4_sys_stat_args *);
417 int svr4_sys_alarm(struct thread *, struct svr4_sys_alarm_args *);
[all …]
/trueos/sys/ia64/include/
HDreg.h87 struct thread;
90 int fill_regs(struct thread *, struct reg *);
91 int set_regs(struct thread *, struct reg *);
92 int fill_fpregs(struct thread *, struct fpreg *);
93 int set_fpregs(struct thread *, struct fpreg *);
94 int fill_dbregs(struct thread *, struct dbreg *);
95 int set_dbregs(struct thread *, struct dbreg *);
97 int fill_regs32(struct thread *, struct reg32 *);
98 int set_regs32(struct thread *, struct reg32 *);
99 int fill_fpregs32(struct thread *, struct fpreg32 *);
[all …]

12345678910>>...65