/xnu-2422.115.4/bsd/dev/i386/ |
H A D | systemcalls.c | 99 struct uthread *uthread; local 110 uthread = get_bsdthread_info(thread); 113 is_vfork = uthread->uu_flag & UT_VFORK; 143 vt = (void *)uthread->uu_arg; 144 uthread->uu_ap = vt; 150 assert((unsigned) callp->sy_arg_bytes <= sizeof (uthread->uu_arg)); 187 kauth_cred_uthread_update(uthread, p); 189 uthread->uu_rval[0] = 0; 190 uthread 277 struct uthread *uthread; local 460 struct uthread *uthread; local [all...] |
H A D | dtrace_subr_x86.c | 83 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 D | fasttrap_isa.c | 968 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 D | stubs.c | 123 struct uthread *ut; 131 struct uthread *ut;
|
/xnu-2422.115.4/bsd/security/audit/ |
H A D | audit.c | 375 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 D | audit_mac.c | 146 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 D | audit.h | 162 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 D | audit_private.h | 303 #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,
|
/xnu-2422.115.4/bsd/sys/ |
H A D | pthread_shims.h | 45 struct uthread; 128 void* (*uthread_get_threadlist)(struct uthread *t); 129 void (*uthread_set_threadlist)(struct uthread *t, void* threadlist); 130 sigset_t (*uthread_get_sigmask)(struct uthread *t); 131 void (*uthread_set_sigmask)(struct uthread *t, sigset_t s); 132 void* (*uthread_get_uukwe)(struct uthread *t); 133 int (*uthread_get_returnval)(struct uthread *t); 134 void (*uthread_set_returnval)(struct uthread *t, int val); 135 int (*uthread_is_cancelled)(struct uthread *t); 161 struct uthread* (*get_bsdthread_inf [all...] |
H A D | user.h | 92 * VFS context structure (part of uthread) 107 * uthread structure. 132 struct uthread { struct 201 TAILQ_ENTRY(uthread) uu_list; /* List of uthreads in proc */ 208 TAILQ_ENTRY(uthread) uu_throttlelist; /* List of uthreads currently throttled */ 277 typedef struct uthread * uthread_t;
|
H A D | mount_internal.h | 466 int throttle_get_io_policy(struct uthread **ut); 467 int throttle_get_passive_io_policy(struct uthread **ut);
|
/xnu-2422.115.4/bsd/kern/ |
H A D | kern_prot.c | 353 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 1964 uthread_t uthread; local [all...] |
H A D | kern_sig.c | 440 struct uthread * uth; 449 uth = (struct uthread *)get_bsdthread_info(thact); 474 struct uthread * uth; 482 uth = (struct uthread *)get_bsdthread_info(thact); 504 struct uthread * uth; 512 uth = (struct uthread *)get_bsdthread_info(thact); 534 struct uthread * uth; 542 uth = (struct uthread *)get_bsdthread_info(thact); 672 struct uthread *ut; 674 ut = (struct uthread *)get_bsdthread_inf 847 struct uthread * uthread; local [all...] |
H A D | pthread_shims.c | 76 PTHREAD_STRUCT_ACCESSOR(uthread_get_threadlist, uthread_set_threadlist, void*, struct uthread*, uu_threadlist); 77 PTHREAD_STRUCT_ACCESSOR(uthread_get_sigmask, uthread_set_sigmask, sigset_t, struct uthread*, uu_sigmask); 78 PTHREAD_STRUCT_ACCESSOR(uthread_get_returnval, uthread_set_returnval, int, struct uthread*, uu_rval[0]); 117 uthread_get_uukwe(struct uthread *t) 123 uthread_is_cancelled(struct uthread *t)
|
H A D | kern_fork.c | 219 * 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 | ^ 333 * uthread to return running in the child; 407 * child and the tash/thread/uthread from the parent in 685 * with the task, thread, and uthread. 757 * thread creation, a uthread), which is then associated with the 939 * the net effect is to provide a uthread structur 1515 uthread_cleanup(task_t task, void *uthread, void * bsd_info) argument 1597 uthread_cred_free(void *uthread) argument 1611 uthread_zone_free(void *uthread) argument [all...] |
H A D | bsd_stubs.c | 92 struct uthread * ut; 96 ut = (struct uthread *)get_bsdthread_info(thread);
|
H A D | bsd_init.c | 379 * normally to allocate a uthread structure, and fill out the uu_sigmask, 383 * of the uu_context.vc_ucred field so that the uthread structure can be 392 struct uthread *ut; 989 struct uthread *ut; 1076 struct uthread *ut; 1097 ut = (struct uthread *)get_bsdthread_info(thread);
|
H A D | kern_credential.c | 737 struct uthread *ut; 892 struct uthread *ut = get_bsdthread_info(thread); 3454 struct uthread *uthread; local 3456 uthread = get_bsdthread_info(current_thread()); 3458 if (uthread == NULL) 3467 if (uthread->uu_ucred == NOCRED) { 3470 uthread->uu_ucred = kauth_cred_proc_ref(p); 3472 return(uthread->uu_ucred); 3478 uthread_t uthread; local 3505 kauth_cred_uthread_update(uthread_t uthread, proc_t proc) argument 3545 struct uthread *uthread; local [all...] |
/xnu-2422.115.4/security/ |
H A D | mac_process.c | 666 mac_thread_label_init(struct uthread *uthread) argument 668 uthread->uu_label = mac_thread_label_alloc(); 679 mac_thread_label_destroy(struct uthread *uthread) argument 682 mac_thread_label_free(uthread->uu_label); 683 uthread->uu_label = NULL; 694 mac_thread_get_uthreadlabel(struct uthread *uthread) argument 697 return (uthread 703 struct uthread *uthread = get_bsdthread_info(thread); local [all...] |
H A D | mac_mach_internal.h | 70 struct uthread; 74 struct label *mac_thread_get_uthreadlabel(struct uthread *uthread);
|
/xnu-2422.115.4/bsd/dev/dtrace/ |
H A D | systrace.c | 157 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 158 if (uthread) 159 uthread->t_dtrace_syscall_args = (void *)ip; 166 if (uthread) 167 uthread->t_dtrace_syscall_args = (void *)0; 188 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 190 if (uthread) 191 uthread->t_dtrace_errno = rval; /* Establish t_dtrace_errno now in case this enabling refers to it. */ 272 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 274 if (uthread) 824 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 1123 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local 1146 uthread_t uthread = (uthread_t)get_bsdthread_info(current_thread()); local [all...] |
/xnu-2422.115.4/bsd/dev/dtrace/scripts/ |
H A D | darwin.d | 26 inline uthread_t uthread = (mach_kernel`uthread_t)(curthread->uthread); /* ` */ 27 #pragma D binding "1.0" uthread 30 (uthread && (uthread->uu_flag & UT_VFORK) && uthread->uu_proc) ? (struct proc *)uthread->uu_proc : 290 pr_wchan = (uintptr_t)(((uthread_t)(T->uthread))->uu_wchan); 300 pr_syscall = ((uthread_t)(T->uthread))->uu_code;
|
/xnu-2422.115.4/bsd/dev/chud/ |
H A D | chud_process.c | 70 struct uthread *ut = get_bsdthread_info(current_thread()); 77 // no task, so try looking in the uthread and/or proc
|
/xnu-2422.115.4/tools/lldbmacros/ |
H A D | process.py | 150 if int(thread.uthread) != 0: 151 uthread = Cast(thread.uthread, 'uthread *') 153 if int(uthread.pth_name) != 0 : 154 th_name_strval = Cast(uthread.pth_name, 'char *') 159 if int(uthread.uu_flag) & 0x400: 201 if int(thread.uthread) != 0 : 202 uthread = Cast(thread.uthread, 'uthrea [all...] |
/xnu-2422.115.4/osfmk/kern/ |
H A D | bsd_kern.c | 96 return(th->uthread); 711 if ((vpp != NULL) && (thact->uthread != NULL)) 712 bsd_threadcdir(thact->uthread, vpp, vidp); 713 bsd_getthreadname(thact->uthread,ptinfo->pth_name);
|