Lines Matching defs:td2
366 do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread *td2,
404 tidhash_add(td2);
461 bzero(&td2->td_startzero,
464 bcopy(&td->td_startcopy, &td2->td_startcopy,
467 bcopy(&p2->p_comm, &td2->td_name, sizeof(td2->td_name));
468 td2->td_sigstk = td->td_sigstk;
469 td2->td_flags = TDF_INMEM;
470 td2->td_lend_user_pri = PRI_MAX;
473 td2->td_vnet = NULL;
474 td2->td_vnet_lpush = NULL;
481 sched_fork(td, td2);
529 td2->td_pflags |= TDP_KTHREAD;
548 thread_cow_get_proc(td2, p2);
611 td2->td_pflags |= (td->td_pflags & (TDP_ALTSTACK | TDP_SIGFASTBLOCK));
672 vm_forkproc(td, p2, td2, vm2, fr->fr_flags);
774 td2->td_dbgflags |= TDB_STOPATFORK;
794 thread_lock(td2);
795 TD_SET_CAN_RUN(td2);
796 sched_add(td2, SRQ_BORING);
851 struct thread *td2;
1013 td2 = FIRST_THREAD_IN_PROC(newproc);
1014 if (td2 == NULL) {
1015 td2 = thread_alloc(pages);
1016 if (td2 == NULL) {
1020 proc_linkup(newproc, td2);
1022 error = thread_recycle(td2, pages);
1079 do_fork(td, fr, newproc, td2, vm2, fp_procdesc);