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

123

/darwin-on-arm/xnu/bsd/dev/arm/
H A Dunix_syscalls.c110 struct uthread *uthread; local
116 uthread = get_bsdthread_info(thread);
121 is_vfork = uthread->uu_flag & UT_VFORK;
151 kauth_cred_uthread_update(uthread, p);
169 uthread->uu_arg[i] = state->r[i];
176 uthread->uu_arg[i] = state->r[i + 1];
186 uthread->uu_flag |= UT_NOTCANCELPT;
187 uthread->uu_rval[0] = 0;
188 uthread
266 struct uthread *uthread; local
[all...]
H A Dstubs.c62 struct uthread *ut;
76 struct uthread *ut;
H A Dunix_signals.c94 struct uthread *ut;
340 struct uthread *ut;
/darwin-on-arm/xnu/bsd/dev/i386/
H A Dsystemcalls.c102 struct uthread *uthread; local
114 uthread = get_bsdthread_info(thread);
117 is_vfork = uthread->uu_flag & UT_VFORK;
148 vt = (void *)uthread->uu_arg;
153 assert((unsigned) callp->sy_arg_bytes <= sizeof (uthread->uu_arg));
194 kauth_cred_uthread_update(uthread, p);
196 uthread->uu_rval[0] = 0;
197 uthread->uu_rval[1] = regs->edx;
198 uthread
284 struct uthread *uthread; local
474 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.c968 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
976 if (uthread->t_dtrace_step) {
977 ASSERT(uthread->t_dtrace_on);
978 fasttrap_sigtrap(p, uthread, pc);
985 uthread->t_dtrace_ft = 0;
986 uthread->t_dtrace_pc = 0;
987 uthread->t_dtrace_npc = 0;
988 uthread->t_dtrace_scrpc = 0;
989 uthread->t_dtrace_astpc = 0;
1158 fasttrap_sigsegv(p, uthread, (user_addr_
1526 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
2173 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
[all...]
H A Dstubs.c124 struct uthread *ut;
139 struct uthread *ut;
/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit.c375 audit_new(int event, proc_t p, __unused struct uthread *uthread) argument
575 audit_syscall_enter(unsigned int code, proc_t proc, struct uthread *uthread) argument
601 KASSERT(uthread->uu_ar == NULL,
602 ("audit_syscall_enter: uthread->uu_ar != NULL"));
625 if (audit_mac_syscall_enter(code, proc, uthread, cred, event) == 0)
646 if (uthread->uu_ar == NULL)
647 uthread->uu_ar = audit_new(event, proc, uthread);
667 audit_syscall_exit(unsigned int code, int error, __unused proc_t proc, struct uthread *uthread) argument
705 struct uthread *uthread; local
754 audit_mach_syscall_exit(int retval, struct uthread *uthread) argument
787 struct uthread *uthread; local
[all...]
H A Daudit_mac.c146 audit_mac_syscall_enter(unsigned short code, proc_t p, struct uthread *uthread, argument
152 (void *)uthread->uu_arg);
154 uthread->uu_ar = audit_new(event, p, uthread);
155 uthread->uu_ar->k_ar.ar_forced_by_mac = 1;
168 audit_mac_syscall_exit(unsigned short code, struct uthread *uthread, int error, argument
173 if (uthread->uu_ar == NULL) /* syscall wasn't audited */
184 (void *) uthread
[all...]
H A Daudit.h162 struct proc *proc, struct uthread *uthread);
169 struct proc *proc, struct uthread *uthread);
172 struct uthread *uthread);
175 void audit_mach_syscall_exit(int retval, struct uthread *uthread);
296 ((struct uthread*)get_bsdthread_info(current_thread()))->uu_ar
343 #define AUDIT_SYSCALL_EXIT(code, proc, uthread, erro
[all...]
H A Daudit_private.h303 #define curthread() ((struct uthread *)get_bsdthread_info(current_thread()))
315 struct uthread *k_uthread; /* Audited thread. */
327 struct kaudit_record *audit_new(int event, proc_t p, struct uthread *td);
438 struct uthread *uthread, kauth_cred_t my_cred, au_event_t event);
439 int audit_mac_syscall_exit(unsigned short code, struct uthread *uthread,
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_prot.c353 struct uthread *uthread = get_bsdthread_info(current_thread()); local
360 if (!(uthread->uu_flag & UT_SETUID))
363 if ((error = suword(uap->uidp, kauth_cred_getruid(uthread->uu_ucred))))
365 if ((error = suword(uap->gidp, kauth_cred_getrgid(uthread->uu_ucred))))
1400 struct uthread *uthread = get_bsdthread_info(current_thread()); local
1415 if ((uthread->uu_flag & UT_SETUID) == 0)
1420 kauth_cred_unref(&uthread->uu_ucred);
1421 uthread
1472 struct uthread *uthread = get_bsdthread_info(current_thread()); local
1597 struct uthread *uthread = get_bsdthread_info(current_thread()); local
2005 uthread_t uthread; local
[all...]
H A Dkern_sig.c438 struct uthread * uth;
447 uth = (struct uthread *)get_bsdthread_info(thact);
472 struct uthread * uth;
480 uth = (struct uthread *)get_bsdthread_info(thact);
502 struct uthread * uth;
510 uth = (struct uthread *)get_bsdthread_info(thact);
532 struct uthread * uth;
540 uth = (struct uthread *)get_bsdthread_info(thact);
670 struct uthread *ut;
672 ut = (struct uthread *)get_bsdthread_inf
845 struct uthread * uthread; local
[all...]
H A Dkern_fork.c219 * has its task, thread, and uthread lent to the child process,
226 * operations on the task, thread, or uthread will result in
228 * state, when a task, thread, and uthread are realized for the
242 * uthread | ^ bsd_info | ^
260 * | uthread | ^ bsd_info | ^
337 * uthread to return running in the child;
411 * child and the tash/thread/uthread from the parent in
682 * with the task, thread, and uthread.
754 * thread creation, a uthread), which is then associated with the
932 * the net effect is to provide a uthread structur
1504 uthread_cleanup(task_t task, void *uthread, void * bsd_info) argument
1588 uthread_cred_free(void *uthread) argument
1602 uthread_zone_free(void *uthread) argument
[all...]
H A Dkern_credential.c682 struct uthread *ut;
837 struct uthread *ut = get_bsdthread_info(thread);
3266 struct uthread *uthread; local
3268 uthread = get_bsdthread_info(current_thread());
3270 if (uthread == NULL)
3279 if (uthread->uu_ucred == NOCRED) {
3282 uthread->uu_ucred = kauth_cred_proc_ref(p);
3284 return(uthread->uu_ucred);
3290 uthread_t uthread; local
3317 kauth_cred_uthread_update(uthread_t uthread, proc_t proc) argument
3357 struct uthread *uthread; local
[all...]
H A Dbsd_stubs.c92 struct uthread * ut;
96 ut = (struct uthread *)get_bsdthread_info(thread);
H A Dkern_exec.c716 struct uthread *uthread; local
757 uthread = get_bsdthread_info(thread);
762 * creating the backing task, thread, and uthread for the child
765 if (uthread->uu_flag & UT_VFORK)
820 * uthread are actually those of our parent, and our proc, which we
833 /* reset local idea of thread, uthread, task */
835 uthread = get_bsdthread_info(thread);
1700 struct uthread *uthread local
2359 struct uthread *uthread; local
[all...]
H A Dbsd_init.c380 * normally to allocate a uthread structure, and fill out the uu_sigmask,
384 * of the uu_context.vc_ucred field so that the uthread structure can be
394 struct uthread *ut;
979 struct uthread *ut;
1080 struct uthread *ut;
1101 ut = (struct uthread *)get_bsdthread_info(thread);
/darwin-on-arm/xnu/security/
H A Dmac_process.c632 mac_thread_label_init(struct uthread *uthread) argument
634 uthread->uu_label = mac_thread_label_alloc();
645 mac_thread_label_destroy(struct uthread *uthread) argument
648 mac_thread_label_free(uthread->uu_label);
649 uthread->uu_label = NULL;
660 mac_thread_get_uthreadlabel(struct uthread *uthread) argument
663 return (uthread
669 struct uthread *uthread = get_bsdthread_info(thread); local
[all...]
H A Dmac_mach_internal.h66 struct uthread;
70 struct label *mac_thread_get_uthreadlabel(struct uthread *uthread);
/darwin-on-arm/xnu/bsd/sys/
H A Duser.h92 * VFS context structure (part of uthread)
112 struct uthread { struct
179 TAILQ_ENTRY(uthread) uu_list; /* List of uthreads in proc */
187 TAILQ_ENTRY(uthread) uu_throttlelist; /* List of uthreads currently throttled */
252 typedef struct uthread * uthread_t;
/darwin-on-arm/xnu/bsd/dev/dtrace/
H A Dsystrace.c161 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
162 if (uthread)
163 uthread->t_dtrace_syscall_args = (void *)ip;
170 if (uthread)
171 uthread->t_dtrace_syscall_args = (void *)0;
192 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
194 if (uthread)
195 uthread->t_dtrace_errno = rval; /* Establish t_dtrace_errno now in case this enabling refers to it. */
276 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
278 if (uthread)
830 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
1129 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
1152 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local
[all...]
/darwin-on-arm/xnu/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
/darwin-on-arm/xnu/osfmk/kern/
H A Dthread.c370 uthread_cleanup(task, thread->uthread, task->bsd_info);
380 uthread_cred_free(thread->uthread);
445 void *ut = thread->uthread;
447 thread->uthread = NULL;
666 new_thread->uthread = uthread_alloc(parent_task, new_thread, (options & TH_OPTION_NOCRED) != 0);
667 if (new_thread->uthread == NULL) {
675 void *ut = new_thread->uthread;
677 new_thread->uthread = NULL;
713 void *ut = new_thread->uthread;
715 new_thread->uthread
[all...]
H A Dbsd_kern.c92 return(th->uthread);
672 if ((vpp != NULL) && (thact->uthread != NULL))
673 bsd_threadcdir(thact->uthread, vpp, vidp);
674 bsd_getthreadname(thact->uthread,ptinfo->pth_name);

Completed in 128 milliseconds

123