Searched refs:uthread (Results 1 - 25 of 57) sorted by relevance

123

/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/
H A Dsystemcalls.c84 struct uthread *uthread; local
107 uthread = get_bsdthread_info(thread_act);
109 if (!(uthread->uu_flag & UT_VFORK))
128 kauth_cred_uthread_update(uthread, proc);
158 (*mungerp)(regsp, (void *) &uthread->uu_arg[0]);
163 uthread->uu_flag |= UT_NOTCANCELPT;
165 uthread->uu_rval[0] = 0;
171 uthread->uu_rval[1] = 0;
183 uthread
291 struct uthread *uthread; local
[all...]
H A Ddtrace_subr_ppc.c80 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
86 kauth_cred_uthread_update(uthread, p);
97 if(uthread->t_dtrace_step == 0) { /* Are we supposed to be tracing? */
101 if (uthread->t_dtrace_ast) {
103 // aston(uthread);
104 // uthread->t_sig_check = 1;
110 uthread->t_dtrace_ft = 0;
H A Dstubs.c90 struct uthread *ut;
98 struct uthread *ut;
H A Dfasttrap_isa.c423 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
428 uthread->t_dtrace_ft = 0;
593 uthread->t_dtrace_step = 1; /* Let it be known that a trace return is imminent */
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/
H A Dsystemcalls.c85 struct uthread *uthread; local
96 uthread = get_bsdthread_info(thread);
99 if (!(uthread->uu_flag & UT_VFORK))
127 vt = (void *)uthread->uu_arg;
132 assert((unsigned) callp->sy_arg_bytes <= sizeof (uthread->uu_arg));
171 kauth_cred_uthread_update(uthread, p);
173 uthread->uu_rval[0] = 0;
174 uthread->uu_rval[1] = regs->edx;
175 uthread
254 struct uthread *uthread; local
423 struct uthread *uthread; local
[all...]
H A Ddtrace_subr_x86.c83 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
90 kauth_cred_uthread_update(uthread, p);
94 uint8_t step = uthread->t_dtrace_step;
95 uint8_t ret = uthread->t_dtrace_ret;
96 user_addr_t npc = uthread->t_dtrace_npc;
98 if (uthread->t_dtrace_ast) {
100 // aston(uthread);
101 // uthread->t_sig_check = 1;
107 uthread->t_dtrace_ft = 0;
H A Dfasttrap_isa.c947 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
955 if (uthread->t_dtrace_step) {
956 ASSERT(uthread->t_dtrace_on);
957 fasttrap_sigtrap(p, uthread, pc);
964 uthread->t_dtrace_ft = 0;
965 uthread->t_dtrace_pc = 0;
966 uthread->t_dtrace_npc = 0;
967 uthread->t_dtrace_scrpc = 0;
968 uthread->t_dtrace_astpc = 0;
1137 fasttrap_sigsegv(p, uthread, (user_addr_
1502 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
2144 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
[all...]
H A Dstubs.c124 struct uthread *ut;
139 struct uthread *ut;
H A Dunix_signal.c124 struct uthread * ut;
552 struct uthread * ut;
563 ut = (struct uthread *)get_bsdthread_info(thread);
/macosx-10.5.8/xnu-1228.15.4/bsd/bsm/
H A Daudit_kernel.h277 struct uthread *k_uthread; /* thread we are auditing */
294 struct uthread *uthread);
297 struct proc *proc, struct uthread *uthread);
304 struct proc *proc, struct uthread *uthread);
307 struct uthread *uthread);
311 struct uthread *uthrea
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_prot.c352 struct uthread *uthread = get_bsdthread_info(current_thread()); local
359 if (!(uthread->uu_flag & UT_SETUID))
362 if ((error = suword(uap->uidp, uthread->uu_ucred->cr_ruid)))
364 if ((error = suword(uap->gidp, uthread->uu_ucred->cr_rgid)))
1366 struct uthread *uthread = get_bsdthread_info(current_thread()); local
1380 if ((uthread->uu_flag & UT_SETUID) == 0)
1385 kauth_cred_unref(&uthread->uu_ucred);
1386 uthread
1437 struct uthread *uthread = get_bsdthread_info(current_thread()); local
1560 struct uthread *uthread = get_bsdthread_info(current_thread()); local
1957 uthread_t uthread; local
[all...]
H A Dkern_audit.c777 static __inline__ struct uthread *
808 struct uthread *uthr;
1470 audit_new(int event, proc_t p, __unused struct uthread *uthread) argument
1699 audit_new_wait(int audit_event, proc_t proc, struct uthread *uthread) argument
1711 uthread->uu_ar = audit_new(audit_event, proc, uthread);
1720 struct uthread *uthread)
1719 audit_syscall_enter(unsigned short code, proc_t proc, struct uthread *uthread) argument
1784 audit_syscall_exit(unsigned short code, int error, AUDIT_PRINTF_ONLY proc_t proc, struct uthread *uthread) argument
1853 struct uthread *uthread; local
1896 audit_mach_syscall_exit(int retval, struct uthread *uthread) argument
[all...]
H A Dkern_sig.c391 struct uthread * uth;
399 uth = (struct uthread *)get_bsdthread_info(thact);
422 struct uthread * uth;
430 uth = (struct uthread *)get_bsdthread_info(thact);
452 struct uthread * uth;
460 uth = (struct uthread *)get_bsdthread_info(thact);
482 struct uthread * uth;
490 uth = (struct uthread *)get_bsdthread_info(thact);
618 struct uthread *ut;
620 ut = (struct uthread *)get_bsdthread_inf
782 struct uthread * uthread; local
[all...]
H A Dbsd_stubs.c81 struct uthread * ut;
85 ut = (struct uthread *)get_bsdthread_info(thread);
H A Dkern_fork.c165 * has its task, thread, and uthread lent to the child process,
172 * operations on the task, thread, or uthread will result in
174 * state, when a task, thread, and uthread are realized for the
322 * with the task, thread, and uthread.
395 * thread creation, a uthread), which is then associated with the
482 * to create a task and thread (and uthread) for the benefit of
714 * the net effect is to provide a uthread structure for the
1100 uthread_zone = zinit(sizeof(struct uthread),
1101 THREAD_MAX * sizeof(struct uthread),
1102 THREAD_CHUNK * sizeof(struct uthread),
1181 uthread_cleanup(task_t task, void *uthread, void * bsd_info) argument
1248 uthread_cred_free(void *uthread) argument
1262 uthread_zone_free(void *uthread) argument
[all...]
H A Dkern_exec.c719 struct uthread *uthread; local
751 uthread = get_bsdthread_info(thread);
753 if (uthread->uu_flag & UT_VFORK)
827 /* reset local idea of thread, uthread, task */
829 uthread = get_bsdthread_info(thread);
1567 struct uthread *uthread = 0; /* compiler complains if not set to 0*/ local
1675 uthread = get_bsdthread_info(current_thread());
1677 p = uthread
1926 struct uthread *uthread; local
[all...]
H A Dkern_credential.c476 struct uthread *ut;
581 struct uthread *ut = get_bsdthread_info(thread);
2459 struct uthread *uthread; local
2461 uthread = get_bsdthread_info(current_thread());
2463 if (uthread == NULL)
2472 if (uthread->uu_ucred == NOCRED) {
2475 uthread->uu_ucred = kauth_cred_proc_ref(p);
2477 return(uthread->uu_ucred);
2484 * Description: Given a uthread,
2499 kauth_cred_uthread_update(uthread_t uthread, proc_t proc) argument
2539 struct uthread *uthread; local
[all...]
H A Dbsd_init.c338 * normally to allocate a uthread structure, and fill out the uu_sigmask,
342 * of the uu_context.vc_ucred field so that the uthread structure can be
349 struct uthread *ut;
888 struct uthread *ut;
992 struct uthread *ut;
1006 ut = (struct uthread *)get_bsdthread_info(thread);
H A Dkern_synch.c71 struct uthread * ut;
160 struct uthread * ut;
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Duser.h88 * VFS context structure (part of uthread)
103 struct uthread { struct
166 TAILQ_ENTRY(uthread) uu_list; /* List of uthreads in proc */
230 typedef struct uthread * uthread_t;
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/chud/
H A Dchud_process.c70 struct uthread *ut = get_bsdthread_info(current_thread());
77 // no task, so try looking in the uthread and/or proc
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dthread.c321 uthread_cleanup(task, thread->uthread, task->bsd_info);
330 uthread_cred_free(thread->uthread);
396 void *ut = thread->uthread;
398 thread->uthread = NULL;
588 new_thread->uthread = uthread_alloc(parent_task, new_thread);
589 if (new_thread->uthread == NULL) {
599 void *ut = new_thread->uthread;
601 new_thread->uthread = NULL;
635 void *ut = new_thread->uthread;
637 new_thread->uthread
[all...]
H A Dbsd_kern.c94 return(th->uthread);
618 if ((vpp != NULL) && (thact->uthread != NULL))
619 bsd_threadcdir(thact->uthread, vpp, vidp);
/macosx-10.5.8/xnu-1228.15.4/bsd/vm/
H A Dvm_unix.c484 struct uthread *uthread; local
516 uthread = get_bsdthread_info(current_thread());
517 kauth_cred_uthread_update(uthread, current_proc());
596 struct uthread *uthread; local
620 uthread = get_bsdthread_info(current_thread());
621 kauth_cred_uthread_update(uthread, current_proc());
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Dsystrace.c189 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
191 if (uthread)
192 uthread->t_dtrace_errno = rval; /* Establish t_dtrace_errno now in case this enabling refers to it. */
246 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
248 if (uthread)
249 uthread->t_dtrace_errno = rval; /* Establish t_dtrace_errno now in case this enabling refers to it. */

Completed in 106 milliseconds

123