Home
last modified time | relevance | path

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

12345678910>>...71

/NextBSD/sys/sys/
HDsyscallsubr.h62 int kern___getcwd(struct thread *td, char *buf, enum uio_seg bufseg,
64 int kern_accept(struct thread *td, int s, struct sockaddr **name,
66 int kern_accept4(struct thread *td, int s, struct sockaddr **name,
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_bindat(struct thread *td, int dirfd, int fd, struct sockaddr *sa);
75 int kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds,
77 int kern_cap_rights_limit(struct thread *td, int fd, cap_rights_t *rights);
78 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;
1962 …char thread_l_[PADL_(mach_port_name_t)]; mach_port_name_t thread; char thread_r_[PADR_(mach_port_n… member
2067 int nosys(struct thread *, struct nosys_args *);
2068 void sys_sys_exit(struct thread *, struct sys_exit_args *);
2069 int sys_fork(struct thread *, struct fork_args *);
2070 int sys_read(struct thread *, struct read_args *);
2071 int sys_write(struct thread *, struct write_args *);
2072 int sys_open(struct thread *, struct open_args *);
2073 int sys_close(struct thread *, struct close_args *);
2074 int sys_wait4(struct thread *, struct wait4_args *);
[all …]
HDproc.h179 struct thread;
185 typedef void (*mi_switchcb_t)(int, struct thread *);
213 struct thread { struct
216 TAILQ_ENTRY(thread) td_plist; /* (*) All threads in this proc. */ argument
217 TAILQ_ENTRY(thread) td_runq; /* (t) Run queue. */
218 TAILQ_ENTRY(thread) td_slpq; /* (t) Sleep queue. */
219 TAILQ_ENTRY(thread) td_lockq; /* (t) Lock queue. */
220 LIST_ENTRY(thread) td_hash; /* (d) Hash chain. */
348 struct mtx *thread_lock_block(struct thread *); argument
349 void thread_lock_unblock(struct thread *, struct mtx *);
[all …]
HDptrace.h146 int ptrace_set_pc(struct thread *_td, unsigned long _addr);
147 int ptrace_single_step(struct thread *_td);
148 int ptrace_clear_single_step(struct thread *_td);
151 int cpu_ptrace(struct thread *_td, int _req, void *_addr, int _data);
164 int proc_read_regs(struct thread *_td, struct reg *_reg);
165 int proc_write_regs(struct thread *_td, struct reg *_reg);
166 int proc_read_fpregs(struct thread *_td, struct fpreg *_fpreg);
167 int proc_write_fpregs(struct thread *_td, struct fpreg *_fpreg);
168 int proc_read_dbregs(struct thread *_td, struct dbreg *_dbreg);
169 int proc_write_dbregs(struct thread *_td, struct dbreg *_dbreg);
[all …]
HDfile.h49 struct thread;
98 struct thread *td);
100 struct ucred *active_cred, struct thread *td);
102 struct ucred *active_cred, struct thread *td);
104 struct ucred *active_cred, struct thread *td);
107 struct ucred *active_cred, struct thread *td);
108 typedef int fo_close_t(struct file *fp, struct thread *td);
110 struct ucred *active_cred, struct thread *td);
112 struct ucred *active_cred, struct thread *td);
115 off_t *sent, int flags, int kflags, struct thread *td);
[all …]
/NextBSD/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 …]
/NextBSD/sys/compat/mach/
HDmach_thread.c63 _intr_tdsigwakeup(struct thread *td, int intrval) in _intr_tdsigwakeup()
92 struct thread *td = curthread; in mach_thread_switch()
131 thread_go(thread_t thread) in thread_go() argument
134 struct mtx *block_lock = thread->ith_block_lock_data; in thread_go()
136 MPASS(thread->ith_state != MACH_SEND_IN_PROGRESS && in thread_go()
137 thread->ith_state != MACH_RCV_IN_PROGRESS && in thread_go()
138 thread->ith_state != MACH_RCV_IN_PROGRESS_TIMED); in thread_go()
144 wakeup(thread); in thread_go()
152 thread_t thread = current_thread(); in thread_block() local
155 MPASS(curthread == thread->ith_td); in thread_block()
[all …]
HDmach_traps.c89 sys_clock_sleep_trap(struct thread *td __unused, struct clock_sleep_trap_args *uap) in sys_clock_sleep_trap()
97 sys_mach_timebase_info(struct thread *td __unused, struct mach_timebase_info_args *uap) in sys_mach_timebase_info()
104 sys_mach_msg_overwrite_trap(struct thread *td __unused, struct mach_msg_overwrite_trap_args *uap) in sys_mach_msg_overwrite_trap()
114 sys_mach_msg_trap(struct thread *td __unused, struct mach_msg_trap_args *uap) in sys_mach_msg_trap()
124 sys_semaphore_wait_trap(struct thread *td, struct semaphore_wait_trap_args *uap)
128 sys_semaphore_signal_trap(struct thread *td, struct semaphore_signal_trap_args *uap)
131 sys_semaphore_wait_signal_trap(struct thread *td, struct semaphore_wait_signal_trap_args *uap)
135 sys_semaphore_signal_thread_trap(struct thread *td, struct semaphore_signal_thread_trap_args *uap)
139 sys_semaphore_signal_all_trap(struct thread *td, struct semaphore_signal_all_trap_args *uap)
143 sys_task_for_pid(struct thread *td, struct task_for_pid_args *uap)
[all …]
/NextBSD/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 …]
/NextBSD/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 …]
/NextBSD/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 …]
/NextBSD/sys/i386/linux/
HDlinux_proto.h24 struct thread;
1180 int linux_exit(struct thread *, struct linux_exit_args *);
1181 int linux_fork(struct thread *, struct linux_fork_args *);
1182 int linux_open(struct thread *, struct linux_open_args *);
1183 int linux_waitpid(struct thread *, struct linux_waitpid_args *);
1184 int linux_creat(struct thread *, struct linux_creat_args *);
1185 int linux_link(struct thread *, struct linux_link_args *);
1186 int linux_unlink(struct thread *, struct linux_unlink_args *);
1187 int linux_execve(struct thread *, struct linux_execve_args *);
1188 int linux_chdir(struct thread *, struct linux_chdir_args *);
[all …]
/NextBSD/sys/amd64/linux32/
HDlinux32_proto.h24 struct thread;
1162 int linux_exit(struct thread *, struct linux_exit_args *);
1163 int linux_fork(struct thread *, struct linux_fork_args *);
1164 int linux_open(struct thread *, struct linux_open_args *);
1165 int linux_waitpid(struct thread *, struct linux_waitpid_args *);
1166 int linux_creat(struct thread *, struct linux_creat_args *);
1167 int linux_link(struct thread *, struct linux_link_args *);
1168 int linux_unlink(struct thread *, struct linux_unlink_args *);
1169 int linux_execve(struct thread *, struct linux_execve_args *);
1170 int linux_chdir(struct thread *, struct linux_chdir_args *);
[all …]
/NextBSD/sys/amd64/linux/
HDlinux_proto.h24 struct thread;
1114 int linux_open(struct thread *, struct linux_open_args *);
1115 int linux_newstat(struct thread *, struct linux_newstat_args *);
1116 int linux_newfstat(struct thread *, struct linux_newfstat_args *);
1117 int linux_newlstat(struct thread *, struct linux_newlstat_args *);
1118 int linux_lseek(struct thread *, struct linux_lseek_args *);
1119 int linux_mmap2(struct thread *, struct linux_mmap2_args *);
1120 int linux_mprotect(struct thread *, struct linux_mprotect_args *);
1121 int linux_brk(struct thread *, struct linux_brk_args *);
1122 int linux_rt_sigaction(struct thread *, struct linux_rt_sigaction_args *);
[all …]
/NextBSD/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 …]
/NextBSD/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 …]
/NextBSD/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 …]
/NextBSD/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 …]
/NextBSD/sys/compat/mach/ipc/
HDipc_mqueue.c603 thread_t thread) in ipc_mqueue_post_on_thread() argument
629 thread->ith_receiver_name = port->ip_receiver_name; in ipc_mqueue_post_on_thread()
630 thread->ith_kmsg = IKM_NULL; in ipc_mqueue_post_on_thread()
631 thread->ith_msize = rcv_size; in ipc_mqueue_post_on_thread()
632 thread->ith_seqno = 0; in ipc_mqueue_post_on_thread()
633 thread->ith_state = mr; in ipc_mqueue_post_on_thread()
642 thread->ith_object = (ipc_object_t)port; in ipc_mqueue_post_on_thread()
643 thread->ith_seqno = port->ip_seqno++; in ipc_mqueue_post_on_thread()
644 thread->ith_kmsg = kmsg; in ipc_mqueue_post_on_thread()
645 thread->ith_state = mr; in ipc_mqueue_post_on_thread()
[all …]
HDipc_thread.c89 ipc_thread_t thread) in ipc_thread_enqueue() argument
91 ipc_thread_enqueue_macro(queue, thread); in ipc_thread_enqueue()
123 ipc_thread_t thread) in ipc_thread_rmqueue() argument
129 next = thread->ith_next; in ipc_thread_rmqueue()
130 prev = thread->ith_prev; in ipc_thread_rmqueue()
132 if (next == thread) { in ipc_thread_rmqueue()
133 assert(prev == thread); in ipc_thread_rmqueue()
134 assert(queue->ithq_base == thread); in ipc_thread_rmqueue()
138 if (queue->ithq_base == thread) in ipc_thread_rmqueue()
143 ipc_thread_links_init(thread); in ipc_thread_rmqueue()
[all …]
/NextBSD/sys/compat/freebsd32/
HDfreebsd32_proto.h24 struct thread;
709 int freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *);
710 int freebsd32_recvmsg(struct thread *, struct freebsd32_recvmsg_args *);
711 int freebsd32_sendmsg(struct thread *, struct freebsd32_sendmsg_args *);
712 int freebsd32_recvfrom(struct thread *, struct freebsd32_recvfrom_args *);
713 int freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *);
714 int freebsd32_ioctl(struct thread *, struct freebsd32_ioctl_args *);
715 int freebsd32_execve(struct thread *, struct freebsd32_execve_args *);
716 int freebsd32_mprotect(struct thread *, struct freebsd32_mprotect_args *);
717 int freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *);
[all …]

12345678910>>...71