Searched refs:thread (Results 1 - 25 of 1232) sorted by relevance

1234567891011>>

/freebsd-10.0-release/sys/compat/linux/
H A Dlinux_sysproto.h34 int linux_nosys(struct thread *, struct nosys_args *);
H A Dlinux_mib.h37 void linux_get_osname(struct thread *td, char *dst);
39 void linux_get_osrelease(struct thread *td, char *dst);
41 int linux_get_oss_version(struct thread *td);
43 int linux_kernver(struct thread *td);
/freebsd-10.0-release/sys/powerpc/include/
H A Daltivec.h35 void enable_vec(struct thread *);
36 void save_vec(struct thread *);
/freebsd-10.0-release/lib/libkse/thread/
H A Dthr_suspend_np.c38 int _pthread_suspend_np(pthread_t thread);
41 static void suspend_common(struct pthread *thread);
46 /* Suspend a thread: */
48 _pthread_suspend_np(pthread_t thread) argument
53 /* Suspending the current thread doesn't make sense. */
54 if (thread == _get_curthread())
57 /* Add a reference to the thread: */
58 else if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0))
61 THR_SCHED_LOCK(curthread, thread);
62 suspend_common(thread);
76 struct pthread *thread; local
97 suspend_common(struct pthread *thread) argument
[all...]
H A Dthr_resume_np.c38 int _pthread_resume_np(pthread_t thread);
47 /* Resume a thread: */
49 _pthread_resume_np(pthread_t thread) argument
55 /* Add a reference to the thread: */
56 if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0)) == 0) {
58 THR_SCHED_LOCK(curthread, thread);
59 kmbx = resume_common(thread);
60 THR_SCHED_UNLOCK(curthread, thread);
61 _thr_ref_delete(curthread, thread);
72 struct pthread *thread; local
96 resume_common(struct pthread *thread) argument
[all...]
H A Dthr_seterrno.c46 void _thread_seterrno(pthread_t thread, int error);
49 _thread_seterrno(pthread_t thread, int error) argument
51 /* Check for the initial thread: */
52 if (thread == _thr_initial)
53 /* The initial thread always uses the global error variable: */
57 * Threads other than the initial thread always use the error
58 * field in the thread structureL
60 thread->error = error;
/freebsd-10.0-release/sys/sys/
H A Drunq.h34 struct thread;
46 TAILQ_HEAD(rqhead, thread);
65 void runq_add(struct runq *, struct thread *, int);
66 void runq_add_pri(struct runq *, struct thread *, u_char, int);
68 struct thread *runq_choose(struct runq *);
69 struct thread *runq_choose_from(struct runq *, u_char);
70 struct thread *runq_choose_fuzz(struct runq *, int);
72 void runq_remove(struct runq *, struct thread *);
73 void runq_remove_idx(struct runq *, struct thread *, u_char *);
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);
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 *t
[all...]
H A Dmqueue.h41 struct thread;
43 extern void (*mq_fdclose)(struct thread *td, int fd, struct file *fp);
H A Dsyscallsubr.h59 int kern___getcwd(struct thread *td, u_char *buf, enum uio_seg bufseg,
61 int kern_accept(struct thread *td, int s, struct sockaddr **name,
63 int kern_accept4(struct thread *td, int s, struct sockaddr **name,
65 int kern_access(struct thread *td, char *path, enum uio_seg pathseg,
67 int kern_accessat(struct thread *td, int fd, char *path,
69 int kern_adjtime(struct thread *td, struct timeval *delta,
71 int kern_alternate_path(struct thread *td, const char *prefix, const char *path,
73 int kern_bind(struct thread *td, int fd, struct sockaddr *sa);
74 int kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds,
76 int kern_chdir(struct thread *t
[all...]
H A Dkthread.h45 /* A kernel thread descriptor; used to start "internal" daemons. */
48 void (*func)(void); /* "main" for kernel thread */
49 struct thread **global_threadpp; /* ptr to thread ptr save area */
61 /* create a thread inthe given process. create the process if needed */
64 struct thread **,
69 struct proc *, struct thread **,
72 int kthread_resume(struct thread *);
75 int kthread_suspend(struct thread *, int);
H A Dkdb.h35 struct thread;
40 typedef void dbbe_trace_thread_f(struct thread *);
67 extern struct thread *kdb_thread; /* Current thread. */
73 void kdb_backtrace_thread(struct thread *);
81 struct pcb *kdb_thr_ctx(struct thread *);
82 struct thread *kdb_thr_first(void);
83 struct thread *kdb_thr_from_pid(pid_t);
84 struct thread *kdb_thr_lookup(lwpid_t);
85 struct thread *kdb_thr_nex
[all...]
H A Dptrace.h56 #define PT_GETLWPLIST 15 /* get thread list */
59 #define PT_SUSPEND 18 /* suspend a thread */
60 #define PT_RESUME 19 /* resume a thread */
103 #define PL_FLAG_SA 0x01 /* M:N thread */
104 #define PL_FLAG_BOUND 0x02 /* M:N bound thread */
141 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 *_t
[all...]
/freebsd-10.0-release/lib/libthr/thread/
H A Dthr_suspend_np.c46 /* Suspend a thread: */
48 _pthread_suspend_np(pthread_t thread) argument
53 /* Suspending the current thread doesn't make sense. */
54 if (thread == _get_curthread())
57 /* Add a reference to the thread: */
58 else if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0))
61 THR_THREAD_LOCK(curthread, thread);
62 suspend_common(curthread, thread, 1);
64 THR_THREAD_UNLOCK(curthread, thread);
67 _thr_ref_delete(curthread, thread);
107 struct pthread *thread; local
159 suspend_common(struct pthread *curthread, struct pthread *thread, int waitok) argument
[all...]
H A Dthr_list.c73 static void thr_destroy(struct pthread *curthread, struct pthread *thread);
118 * XXX we don't free initial thread, because there might
119 * have some code referencing initial thread.
122 DBG_MSG("Initial thread won't be freed\n");
133 struct pthread *thread = NULL; local
141 if ((thread = TAILQ_FIRST(&free_threadq)) != NULL) {
142 TAILQ_REMOVE(&free_threadq, thread, tle);
148 if (thread == NULL) {
152 thread = calloc(1, sizeof(struct pthread));
153 if (thread
185 _thr_free(struct pthread *curthread, struct pthread *thread) argument
218 thr_destroy(struct pthread *curthread __unused, struct pthread *thread) argument
232 _thr_link(struct pthread *curthread, struct pthread *thread) argument
244 _thr_unlink(struct pthread *curthread, struct pthread *thread) argument
253 _thr_hash_add(struct pthread *thread) argument
262 _thr_hash_remove(struct pthread *thread) argument
268 _thr_hash_find(struct pthread *thread) argument
287 _thr_ref_add(struct pthread *curthread, struct pthread *thread, int include_dead) argument
307 _thr_ref_delete(struct pthread *curthread, struct pthread *thread) argument
317 _thr_try_gc(struct pthread *curthread, struct pthread *thread) argument
338 _thr_find_thread(struct pthread *curthread, struct pthread *thread, int include_dead) argument
[all...]
H A Dthr_info.c43 /* Set the thread name for debug. */
45 _pthread_set_name_np(pthread_t thread, const char *name) argument
50 if (curthread == thread) {
51 if (thr_set_name(thread->tid, name))
54 if ((ret=_thr_find_thread(curthread, thread, 0)) == 0) {
55 if (thread->state != PS_DEAD) {
56 if (thr_set_name(thread->tid, name))
59 THR_THREAD_UNLOCK(curthread, thread);
H A Dthr_resume_np.c43 static void resume_common(struct pthread *thread);
45 /* Resume a thread: */
47 _pthread_resume_np(pthread_t thread) argument
52 /* Add a reference to the thread: */
53 if ((ret = _thr_find_thread(curthread, thread, /*include dead*/0)) == 0) {
55 resume_common(thread);
56 THR_THREAD_UNLOCK(curthread, thread);
65 struct pthread *thread; local
71 /* Take the thread list lock: */
74 TAILQ_FOREACH(thread,
90 resume_common(struct pthread *thread) argument
[all...]
/freebsd-10.0-release/sys/arm/include/
H A Dreg.h26 int fill_regs(struct thread *, struct reg *);
27 int set_regs(struct thread *, struct reg *);
28 int fill_fpregs(struct thread *, struct fpreg *);
29 int set_fpregs(struct thread *, struct fpreg *);
30 int fill_dbregs(struct thread *, struct dbreg *);
31 int set_dbregs(struct thread *, struct dbreg *);
/freebsd-10.0-release/cddl/contrib/dtracetoolkit/Bin/
H A Dj_thread.d3 * j_thread.d - snoop Java thread execution using DTrace.
20 * => thread start
21 * <= thread end
50 hotspot*:::thread-start
52 this->thread = (char *)copyin(arg0, arg1 + 1);
53 this->thread[arg1] = '\0';
55 stringof(this->thread));
58 hotspot*:::thread-stop
60 this->thread = (char *)copyin(arg0, arg1 + 1);
61 this->thread[arg
[all...]
/freebsd-10.0-release/cddl/contrib/dtracetoolkit/Java/
H A Dj_thread.d3 * j_thread.d - snoop Java thread execution using DTrace.
20 * => thread start
21 * <= thread end
50 hotspot*:::thread-start
52 this->thread = (char *)copyin(arg0, arg1 + 1);
53 this->thread[arg1] = '\0';
55 stringof(this->thread));
58 hotspot*:::thread-stop
60 this->thread = (char *)copyin(arg0, arg1 + 1);
61 this->thread[arg
[all...]
/freebsd-10.0-release/sys/mips/include/
H A Dreg.h89 int fill_fpregs(struct thread *, struct fpreg *);
90 int fill_regs(struct thread *, struct reg *);
91 int set_fpregs(struct thread *, struct fpreg *);
92 int set_regs(struct thread *, struct reg *);
93 int fill_dbregs(struct thread *, struct dbreg *);
94 int set_dbregs(struct thread *, struct dbreg *);
100 int fill_regs32(struct thread *, struct reg32 *);
101 int set_regs32(struct thread *, struct reg32 *);
102 int fill_fpregs32(struct thread *, struct fpreg32 *);
103 int set_fpregs32(struct thread *, struc
[all...]
/freebsd-10.0-release/sys/ia64/include/
H A Dreg.h85 struct thread;
88 int fill_regs(struct thread *, struct reg *);
89 int set_regs(struct thread *, struct reg *);
90 int fill_fpregs(struct thread *, struct fpreg *);
91 int set_fpregs(struct thread *, struct fpreg *);
92 int fill_dbregs(struct thread *, struct dbreg *);
93 int set_dbregs(struct thread *, struct dbreg *);
95 int fill_regs32(struct thread *, struct reg32 *);
96 int set_regs32(struct thread *, struct reg32 *);
97 int fill_fpregs32(struct thread *, struc
[all...]
/freebsd-10.0-release/sys/cddl/compat/opensolaris/sys/
H A Dzone.h41 * Is thread in the global zone?
43 #define INGLOBALZONE(thread) (!jailed((thread)->td_ucred))
/freebsd-10.0-release/sys/compat/svr4/
H A Dsvr4_socket.h41 struct thread;
51 int svr4_add_socket(struct thread *, const char *, struct stat *);
53 int svr4_find_socket(struct thread *, struct file *, dev_t, ino_t,
/freebsd-10.0-release/contrib/llvm/tools/lldb/source/Target/
H A DThreadSpec.cpp61 ThreadSpec::TIDMatches (Thread &thread) const
66 lldb::tid_t thread_id = thread.GetID();
70 ThreadSpec::IndexMatches (Thread &thread) const
74 uint32_t index = thread.GetIndexID();
78 ThreadSpec::NameMatches (Thread &thread) const
83 const char *name = thread.GetName();
87 ThreadSpec::QueueNameMatches (Thread &thread) const
92 const char *queue_name = thread.GetQueueName();
97 ThreadSpec::ThreadPassesBasicTests (Thread &thread) const
103 if (!TIDMatches(thread))
[all...]

Completed in 113 milliseconds

1234567891011>>