Searched refs:tro (Results 1 – 12 of 12) sorted by relevance
| /xnu-11215/osfmk/kern/ |
| H A D | ipc_tt.c | 818 thread_ro_t tro, in ipc_thread_init() argument 851 tro->tro_self_port = pport; in ipc_thread_init() 881 assert(tro->tro_self_port == tro->tro_ports[THREAD_FLAVOR_CONTROL]); in ipc_main_thread_set_immovable_pinned() 883 assert(tro->tro_self_port == tro->tro_settable_self_port); in ipc_main_thread_set_immovable_pinned() 1068 pport = tro->tro_self_port; in ipc_thread_terminate() 1381 if (tro->tro_settable_self_port != tro->tro_ports[THREAD_FLAVOR_CONTROL]) { in retrieve_thread_self_fast() 1794 thread_ro_t tro; in thread_get_special_port_from_user() local 1943 (void)tro; in thread_set_special_port() 4295 thread_ro_t tro; in thread_set_exception_ports_internal() local 4522 thread_ro_t tro; in thread_swap_exception_ports() local [all …]
|
| H A D | bsd_kern.c | 134 __thread_ro_circularity_panic(thread_t th, thread_ro_t tro) in __thread_ro_circularity_panic() argument 136 panic("tro %p points back to %p instead of %p", tro, tro->tro_owner, th); in __thread_ro_circularity_panic() 149 thread_ro_t tro = th->t_tro; in get_thread_ro() local 151 zone_require_ro(ZONE_ID_THREAD_RO, sizeof(struct thread_ro), tro); in get_thread_ro() 152 if (tro->tro_owner != th) { in get_thread_ro() 153 __thread_ro_circularity_panic(th, tro); in get_thread_ro() 155 return tro; in get_thread_ro() 174 thread_ro_t tro = get_thread_ro(th); in clear_thread_ro_proc() local 176 zalloc_ro_clear_field(ZONE_ID_THREAD_RO, tro, tro_proc); in clear_thread_ro_proc()
|
| H A D | exception.c | 728 thread_ro_t tro; in exception_triage_thread() local 752 tro = get_thread_ro(thread); in exception_triage_thread() 753 actions = tro->tro_exc_actions; in exception_triage_thread() 764 task = tro->tro_task; in exception_triage_thread()
|
| H A D | thread.c | 362 thread_ro_t tro = get_thread_ro(th); in thread_ro_destroy() local 364 struct ucred *cred = tro->tro_cred; in thread_ro_destroy() 365 struct ucred *rcred = tro->tro_realcred; in thread_ro_destroy() 367 zfree_ro(ZONE_ID_THREAD_RO, tro); in thread_ro_destroy() 457 thread_ro_t tro = get_thread_ro(thread); in thread_terminate_self() local 458 task_t task = tro->tro_task; in thread_terminate_self() 518 uthread_cleanup(get_bsdthread_info(thread), tro); in thread_terminate_self() 3955 thread_ro_t tro; in thread_port_with_flavor_no_senders() local 4000 tro = get_thread_ro(thread); in thread_port_with_flavor_no_senders() 4002 tro->tro_ports[flavor] != port || in thread_port_with_flavor_no_senders() [all …]
|
| H A D | ipc_tt.h | 122 thread_ro_t tro,
|
| H A D | ipc_kobject.c | 497 thread_ro_t tro = current_thread_ro(); in ipc_kobject_server_internal() local 498 task_t curtask = tro->tro_task; in ipc_kobject_server_internal() 499 struct proc *curproc = tro->tro_proc; in ipc_kobject_server_internal()
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_prot.c | 324 thread_ro_t tro = current_thread_ro(); in gettid() local 325 kauth_cred_t tro_cred = tro->tro_cred; in gettid() 332 if (tro->tro_realcred == tro->tro_cred) { in gettid() 1161 kauth_cred_t cred = tro->tro_cred; in kern_settid_assume_cred() 1194 if (tro->tro_realcred == tro->tro_cred) { in kern_settid() 1199 kern_settid_assume_cred(tro, tro->tro_realcred); in kern_settid() 1202 if (tro->tro_realcred != tro->tro_cred) { in kern_settid() 1217 kern_settid_assume_cred(tro, cred); in kern_settid() 1357 thread_ro_t tro = current_thread_ro(); in setgroups_internal() local 1375 if (tro->tro_realcred != tro->tro_cred) { in setgroups_internal() [all …]
|
| H A D | kern_credential.c | 3470 thread_ro_t tro = current_thread_ro(); in current_cached_proc_cred() local 3472 if (tro->tro_proc != p && p != PROC_NULL) { in current_cached_proc_cred() 3475 return tro->tro_realcred; in current_cached_proc_cred() 3499 kauth_cred_thread_update_slow(thread_ro_t tro, proc_t proc) in kauth_cred_thread_update_slow() argument 3502 struct thread_ro_creds my_creds = tro->tro_creds; in kauth_cred_thread_update_slow() 3510 tro, tro_creds, &my_creds); in kauth_cred_thread_update_slow() 3526 thread_ro_t tro = current_thread_ro(); in current_cached_proc_cred_update() local 3527 proc_t proc = tro->tro_proc; in current_cached_proc_cred_update() 3529 if (__improbable(tro->tro_task != kernel_task && in current_cached_proc_cred_update() 3530 tro->tro_realcred != proc_ucred_unsafe(proc))) { in current_cached_proc_cred_update() [all …]
|
| H A D | kern_fork.c | 1442 uthread_cleanup(uthread_t uth, thread_ro_t tro) in uthread_cleanup() argument 1444 task_t task = tro->tro_task; in uthread_cleanup() 1445 proc_t p = tro->tro_proc; in uthread_cleanup()
|
| /xnu-11215/osfmk/arm64/ |
| H A D | bsd_arm64.c | 246 thread_ro_t tro = current_thread_ro(); in mach_syscall() local 247 task_t task = tro->tro_task; in mach_syscall() 248 struct proc *proc = tro->tro_proc; in mach_syscall()
|
| /xnu-11215/osfmk/i386/ |
| H A D | bsd_i386.c | 571 thread_ro_t tro = current_thread_ro(); in mach_call_munger() local 572 task_t task = tro->tro_task; in mach_call_munger() 573 struct proc *proc = tro->tro_proc; in mach_call_munger() 690 thread_ro_t tro = current_thread_ro(); in mach_call_munger64() local 691 task_t task = tro->tro_task; in mach_call_munger64() 692 struct proc *proc = tro->tro_proc; in mach_call_munger64()
|
| /xnu-11215/bsd/pthread/ |
| H A D | pthread_workqueue.c | 1943 thread_ro_t tro = get_thread_ro(thread); in workq_sched_callback() local 1945 struct workqueue *wq = proc_get_wqptr(tro->tro_proc); in workq_sched_callback()
|