/darwin-on-arm/xnu/bsd/dev/arm/ |
H A D | stubs.c | 62 struct uthread *ut; local 64 ut = get_bsdthread_info(th); 69 arg_ptr = (void *) (ut->uu_arg); 76 struct uthread *ut; local 78 ut = get_bsdthread_info(th); 79 return (&ut->uu_rval[0]);
|
H A D | unix_signals.c | 94 struct uthread *ut; local 110 ut = get_bsdthread_info(thread); 149 oonstack = ut->uu_sigstk.ss_flags & SA_ONSTACK; 150 if ((ut->uu_flag & UT_ALTSTACK) && !oonstack && (ps->ps_sigonstack & sigmask(sig))) { 151 ua_sp = ut->uu_sigstk.ss_sp; 152 ua_sp += ut->uu_sigstk.ss_size; 153 stack_size = ut->uu_sigstk.ss_size; 154 ut->uu_sigstk.ss_flags |= SA_ONSTACK; 311 ut->uu_sigmask &= ~sig; 340 struct uthread *ut; local [all...] |
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_synch.c | 70 struct uthread * ut; local 75 ut = get_bsdthread_info(self); 76 catch = ut->uu_pri & PCATCH; 77 dropmutex = ut->uu_pri & PDROP; 78 spinmutex = ut->uu_pri & PSPIN; 97 } else if (SHOULDissignal(p,ut)) { 107 } else if( (ut->uu_flag & ( UT_CANCELDISABLE | UT_CANCEL | UT_CANCELED)) == UT_CANCEL) { 119 if (ut->uu_mtx && !dropmutex) { 121 lck_mtx_lock_spin(ut->uu_mtx); 123 lck_mtx_lock(ut 163 struct uthread * ut; local [all...] |
H A D | kern_sig.c | 670 struct uthread *ut; local 672 ut = (struct uthread *)get_bsdthread_info(thread); 683 ut->uu_siglist |= p->p_siglist; 698 ut->uu_siglist &= ~mask; 708 ut->uu_sigstk.ss_flags = SA_DISABLE; 709 ut->uu_sigstk.ss_size = 0; 710 ut->uu_sigstk.ss_sp = USER_ADDR_NULL; 711 ut->uu_flag &= ~UT_ALTSTACK; 728 struct uthread *ut; local 730 ut 770 struct uthread *ut; local 804 struct uthread *ut; local 1171 struct uthread *ut; local 1228 struct uthread *ut; local 2212 struct uthread * ut; local 2513 struct uthread * ut; local 2660 struct uthread * ut; local 2871 struct uthread *ut = get_bsdthread_info(thread); local [all...] |
H A D | bsd_stubs.c | 92 struct uthread * ut; local 96 ut = (struct uthread *)get_bsdthread_info(thread); 97 if (ut && (ut->uu_flag & UT_VFORK) && ut->uu_proc) { 98 p = ut->uu_proc;
|
H A D | kern_acct.c | 224 struct timeval ut, st, tmp; local 245 calcru(p, &ut, &st, NULL); 246 an_acct.ac_utime = encode_comp_t(ut.tv_sec, ut.tv_usec); 260 tmp = ut;
|
H A D | bsd_init.c | 394 struct uthread *ut; local 485 ut = (uthread_t)get_bsdthread_info(current_thread()); 556 TAILQ_INSERT_TAIL(&kernproc->p_uthlist, ut, uu_list); 587 ut->uu_context.vc_ucred = kernproc->p_ucred; 588 ut->uu_context.vc_thread = current_thread(); 979 struct uthread *ut; local 993 ut = (uthread_t)get_bsdthread_info(thread); 1080 struct uthread *ut; local 1101 ut = (struct uthread *)get_bsdthread_info(thread); 1102 ut [all...] |
H A D | kern_resource.c | 226 struct uthread *ut; local 234 ut = get_bsdthread_info(thread); 237 if ( (ut->uu_flag & UT_BACKGROUND_TRAFFIC_MGT) != 0 ) { 581 struct uthread *ut; local 584 ut = get_bsdthread_info(thread); 587 if ( (ut->uu_flag & UT_VFORK) != 0) { 958 struct timeval ut,st; local 963 ut.tv_sec = tinfo.user_time.seconds; 964 ut.tv_usec = tinfo.user_time.microseconds; 967 timeradd(&ut, u [all...] |
H A D | kern_exit.c | 256 struct uthread *ut; local 265 ut = get_bsdthread_info(self); 266 if (ut->uu_flag & UT_VFORK) { 290 AUDIT_SYSCALL_EXIT(SYS_exit, p, ut, 0); /* Exit is always successfull */ 366 struct uthread *ut; local 368 ut = get_bsdthread_info(self); 387 ((ut->uu_exception & 0x0f) << 20) | 388 ((int)ut->uu_code & 0xfffff); 389 subcode = ut->uu_subcode; 426 ut 1617 struct uthread *ut; local 1875 struct timeval ut,st; local [all...] |
H A D | mach_process.c | 121 struct uthread *ut; local 403 ut = (uthread_t)get_bsdthread_info(th_act); 405 ut->uu_siglist |= sigmask(uap->data);
|
H A D | tty.c | 1055 struct uthread *ut; local 1062 ut = (struct uthread *)get_bsdthread_info(current_thread()); 1093 (ut->uu_sigmask & sigmask(SIGTTOU)) == 0) { 1946 struct uthread *ut; local 1951 ut = (struct uthread *)get_bsdthread_info(current_thread()); 1968 (ut->uu_sigmask & sigmask(SIGTTIN)) || 2250 struct uthread *ut; local 2254 ut = (struct uthread *)get_bsdthread_info(current_thread()); 2257 oldsig = wait ? ut->uu_siglist : 0; 2263 if (wait == 0 || ut 2289 struct uthread *ut; local [all...] |
H A D | kern_fork.c | 1425 void *ut; local 1430 ut = (void *)zalloc(uthread_zone); 1431 bzero(ut, sizeof(struct uthread)); 1434 uth = (uthread_t)ut; 1495 return (ut);
|
H A D | kern_lockf.c | 491 struct uthread *ut; local 498 TAILQ_FOREACH(ut, &wproc->p_uthlist, uu_list) { 507 while (((waitblock = (struct lockf *)ut->uu_wchan) != NULL) && 508 ut->uu_wmesg == lockstr && 510 waitblock = (struct lockf *)ut->uu_wchan;
|
H A D | proc_info.c | 694 struct uthread *ut = (struct uthread *)uth; local 695 if(ut->pth_name) 696 bcopy(ut->pth_name,buffer,MAXTHREADNAMESIZE); 702 struct uthread * ut = (struct uthread *)uth; local 706 vp = ut->uu_cdir; 1734 struct uthread *ut = NULL; local 1759 ut = current_uthread(); 1761 if(!ut->pth_name) 1763 ut->pth_name = (char*)kalloc(MAXTHREADNAMESIZE ); 1764 if(!ut [all...] |
H A D | kern_sysctl.c | 673 struct uthread *ut = get_bsdthread_info(current_thread()); local 688 if(ut->pth_name) 690 currlen = strlen(ut->pth_name); 695 if(ut->pth_name) { 696 error = copyout(ut->pth_name,oldp,currlen); 710 if(!ut->pth_name) 712 ut->pth_name = (char*)kalloc( MAXTHREADNAMESIZE ); 713 if(!ut->pth_name) 716 bzero(ut->pth_name, MAXTHREADNAMESIZE); 717 error = copyin(newp, ut 2743 struct uthread *ut; local [all...] |
/darwin-on-arm/xnu/bsd/dev/i386/ |
H A D | stubs.c | 124 struct uthread *ut; local 126 ut = get_bsdthread_info(th); 131 arg_ptr = (void *)(ut->uu_arg); 139 struct uthread *ut; local 141 ut = get_bsdthread_info(th); 142 return(&ut->uu_rval[0]);
|
H A D | unix_signal.c | 162 struct uthread * ut; local 168 ut = get_bsdthread_info(thread); 173 oonstack = ut->uu_sigstk.ss_flags & SA_ONSTACK; 219 if ((ut->uu_flag & UT_ALTSTACK) && !oonstack && 221 ua_sp = ut->uu_sigstk.ss_sp; 222 stack_size = ut->uu_sigstk.ss_size; 224 ut->uu_sigstk.ss_flags |= SA_ONSTACK; 333 if ((ut->uu_flag & UT_ALTSTACK) && !oonstack && 335 ua_sp = ut->uu_sigstk.ss_sp; 336 stack_size = ut 656 struct uthread * ut; local [all...] |
/darwin-on-arm/xnu/bsd/dev/chud/ |
H A D | chud_process.c | 70 struct uthread *ut = get_bsdthread_info(current_thread()); local 80 if(-1 == pid && ut && ut->uu_proc) { 81 pid = proc_pid(ut->uu_proc);
|
/darwin-on-arm/xnu/bsd/miscfs/specfs/ |
H A D | spec_vnops.c | 190 static void throttle_info_update_internal(struct _throttle_io_info_t *info, uthread_t ut, int policy, int flags, boolean_t isssd); 191 static int throttle_get_thread_throttle_level(uthread_t ut, int policy); 923 uthread_t ut, utlist; local 959 TAILQ_FOREACH_SAFE(ut, &info->throttle_uthlist, uu_throttlelist, utlist) { 967 if (throttle_level == THROTTLE_LEVEL_END || throttle_get_thread_throttle_level(ut, -1) <= throttle_level) { 969 TAILQ_REMOVE(&info->throttle_uthlist, ut, uu_throttlelist); 970 ut->uu_on_throttlelist = 0; 972 wakeup(&ut->uu_on_throttlelist); 980 ut = (uthread_t)TAILQ_FIRST(&info->throttle_uthlist); 981 TAILQ_REMOVE(&info->throttle_uthlist, ut, uu_throttlelis 1030 unthrottle_thread(uthread_t ut) argument 1201 throttle_get_io_policy(uthread_t *ut) argument 1211 throttle_get_thread_throttle_level(uthread_t ut, int policy) argument 1314 uthread_t ut; local 1427 throttle_info_reset_window(uthread_t ut) argument 1441 throttle_info_set_initial_window(uthread_t ut, struct _throttle_io_info_t *info, boolean_t BC_throttle) argument 1456 throttle_info_update_internal(struct _throttle_io_info_t *info, uthread_t ut, int policy, int flags, boolean_t isssd) argument 1504 uthread_t ut; local 1627 uthread_t ut; local [all...] |
/darwin-on-arm/xnu/bsd/uxkern/ |
H A D | ux_exception.c | 245 struct uthread *ut; local 273 ut = get_bsdthread_info(th_act); 317 (ut->uu_sigwait & mask) || 318 (ut->uu_sigmask & mask) || 324 ut->uu_sigwait &= ~mask; 325 ut->uu_sigmask &= ~mask; 333 ut->uu_exception = exception; 334 //ut->uu_code = code[0]; // filled in by threadsignal 335 ut->uu_subcode = code[1];
|
/darwin-on-arm/xnu/osfmk/kern/ |
H A D | thread.c | 445 void *ut = thread->uthread; local 448 uthread_zone_free(ut); 675 void *ut = new_thread->uthread; local 679 uthread_cleanup(parent_task, ut, parent_task->bsd_info); 680 uthread_cred_free(ut); 681 uthread_zone_free(ut); 713 void *ut = new_thread->uthread; local 716 uthread_cleanup(parent_task, ut, parent_task->bsd_info); 718 uthread_cred_free(ut); 719 uthread_zone_free(ut); [all...] |
/darwin-on-arm/xnu/bsd/vm/ |
H A D | vnode_pager.c | 88 struct uthread *ut; local 90 ut = get_bsdthread_info(current_thread()); 92 if (ut->uu_lowpri_window)
|
H A D | dp_backing_file.c | 426 struct uthread *ut; local 473 ut = get_bsdthread_info(current_thread());
|
/darwin-on-arm/xnu/bsd/hfs/ |
H A D | hfs_lookup.c | 613 uthread_t ut = (struct uthread *)get_bsdthread_info(current_thread()); local 625 if (__improbable(ut->uu_lowpri_window)) {
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_cache.c | 678 struct uthread *ut; local 688 ut = get_bsdthread_info(current_thread()); 697 ut->uu_defer_reclaims = 1; 698 ut->uu_vreclaims = NULLVP; 751 ut->uu_defer_reclaims = 0; 753 while ( (vp = ut->uu_vreclaims) != NULLVP) { 754 ut->uu_vreclaims = vp->v_defer_reclaimlist;
|