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

1234567891011>>

/freebsd-9.3-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);
76 struct pthread *thread; local
123 suspend_common(struct pthread *curthread, struct pthread *thread, int waitok) argument
[all...]
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
67 /* Take the thread list lock: */
70 TAILQ_FOREACH(thread,
83 resume_common(struct pthread *thread) 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 (_thr_ref_add(curthread, thread, 0) == 0) {
55 THR_THREAD_LOCK(curthread, thread);
56 if (thread->state != PS_DEAD) {
57 if (thr_set_name(thread->tid, name))
60 THR_THREAD_UNLOCK(curthread, thread);
61 _thr_ref_delete(curthread, thread);
[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...]
/freebsd-9.3-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);
H A Dlinux_ipc.h124 int linux_msgctl(struct thread *, struct linux_msgctl_args *);
125 int linux_msgget(struct thread *, struct linux_msgget_args *);
126 int linux_msgrcv(struct thread *, struct linux_msgrcv_args *);
127 int linux_msgsnd(struct thread *, struct linux_msgsnd_args *);
129 int linux_semctl(struct thread *, struct linux_semctl_args *);
130 int linux_semget(struct thread *, struct linux_semget_args *);
131 int linux_semop(struct thread *, struct linux_semop_args *);
133 int linux_shmat(struct thread *, struct linux_shmat_args *);
134 int linux_shmctl(struct thread *, struct linux_shmctl_args *);
135 int linux_shmdt(struct thread *, struc
[all...]
/freebsd-9.3-release/sys/powerpc/include/
H A Daltivec.h35 void enable_vec(struct thread *);
36 void save_vec(struct thread *);
/freebsd-9.3-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-9.3-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 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 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_access(struct thread *td, char *path, enum uio_seg pathseg,
65 int kern_accessat(struct thread *td, int fd, char *path,
67 int kern_adjtime(struct thread *td, struct timeval *delta,
69 int kern_alternate_path(struct thread *td, const char *prefix, const char *path,
71 int kern_bind(struct thread *td, int fd, struct sockaddr *sa);
72 int kern_chdir(struct thread *td, char *path, enum uio_seg pathseg);
73 int kern_chmod(struct thread *td, char *path, enum uio_seg pathseg,
75 int kern_chown(struct thread *t
[all...]
/freebsd-9.3-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-9.3-release/sys/mips/include/
H A Dreg.h70 int fill_fpregs(struct thread *, struct fpreg *);
71 int fill_regs(struct thread *, struct reg *);
72 int set_fpregs(struct thread *, struct fpreg *);
73 int set_regs(struct thread *, struct reg *);
74 int fill_dbregs(struct thread *, struct dbreg *);
75 int set_dbregs(struct thread *, struct dbreg *);
H A Dproc.h71 struct thread;
73 void mips_cpu_switch(struct thread *, struct thread *, struct mtx *);
74 void mips_cpu_throw(struct thread *, struct thread *);
/freebsd-9.3-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-9.3-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-9.3-release/sys/ia64/include/
H A Dreg.h61 struct thread;
64 int fill_regs(struct thread *, struct reg *);
65 int set_regs(struct thread *, struct reg *);
66 int fill_fpregs(struct thread *, struct fpreg *);
67 int set_fpregs(struct thread *, struct fpreg *);
68 int fill_dbregs(struct thread *, struct dbreg *);
69 int set_dbregs(struct thread *, struct dbreg *);
/freebsd-9.3-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-9.3-release/sys/fs/ntfs/
H A Dntfs_vfsops.h39 struct thread;
43 struct thread *, struct vnode **);
/freebsd-9.3-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,

Completed in 265 milliseconds

1234567891011>>