Lines Matching defs:uth

702 	uthread_t uth = get_bsdthread_info(th);
704 act_thread_catt(uth->uu_userstate);
710 uth->uu_userstate = 0;
711 uth->uu_flag &= ~UT_VFORK;
713 if (uth->uu_flag & UT_WASSETUID) {
714 uth->uu_flag |= UT_SETUID;
715 uth->uu_flag &= UT_WASSETUID;
717 uth->uu_proc = 0;
718 uth->uu_sigmask = uth->uu_vforkmask;
1423 uthread_t uth;
1434 uth = (uthread_t)ut;
1435 uth->uu_kwe.kwe_uth = uth;
1436 uth->uu_thread = thread;
1456 uth->uu_ucred = uth_parent->uu_ucred;
1459 uth->uu_flag |= UT_SETUID;
1463 uth->uu_ucred = kauth_cred_proc_ref(p);
1465 uth->uu_ucred = NOCRED;
1474 uth->uu_sigmask = ~workq_threadmask;
1477 uth->uu_sigmask = uth_parent->uu_oldmask;
1479 uth->uu_sigmask = uth_parent->uu_sigmask;
1481 uth->uu_context.vc_thread = thread;
1482 TAILQ_INSERT_TAIL(&p->p_uthlist, uth, uu_list);
1487 uth->t_dtrace_scratch = dtrace_ptss_claim_entry(p);
1491 mac_thread_label_init(uth);
1507 uthread_t uth = (uthread_t)uthread;
1511 if (uth->uu_lowpri_window || uth->uu_throttle_info) {
1530 assert(uth->uu_ar == NULL);
1532 sel = &uth->uu_select;
1540 if (uth->uu_cdir) {
1541 vnode_rele(uth->uu_cdir);
1542 uth->uu_cdir = NULLVP;
1545 if (uth->uu_allocsize && uth->uu_wqset){
1546 kfree(uth->uu_wqset, uth->uu_allocsize);
1548 uth->uu_allocsize = 0;
1549 uth->uu_wqset = 0;
1553 if(uth->pth_name != NULL)
1555 kfree(uth->pth_name, MAXTHREADNAMESIZE);
1556 uth->pth_name = 0;
1560 if (((uth->uu_flag & UT_VFORK) == UT_VFORK) && (uth->uu_proc != PROC_NULL)) {
1561 vfork_exit_internal(uth->uu_proc, 0, 1);
1569 TAILQ_REMOVE(&p->p_uthlist, uth, uu_list);
1570 p->p_siglist |= (uth->uu_siglist & execmask & (~p->p_sigignore | sigcantmask));
1574 struct dtrace_ptss_page_entry *tmpptr = uth->t_dtrace_scratch;
1575 uth->t_dtrace_scratch = NULL;
1581 mac_thread_label_destroy(uth);
1590 uthread_t uth = (uthread_t)uthread;
1593 if (IS_VALID_CRED(uth->uu_ucred)) {
1594 kauth_cred_t oldcred = uth->uu_ucred;
1595 uth->uu_ucred = NOCRED;