Lines Matching refs:td2
396 do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread *td2,
439 tidhash_add(td2);
490 bzero(&td2->td_startzero,
492 td2->td_pflags2 = 0;
493 td2->td_errno = 0;
495 bcopy(&td->td_startcopy, &td2->td_startcopy,
498 bcopy(&p2->p_comm, &td2->td_name, sizeof(td2->td_name));
499 td2->td_sigstk = td->td_sigstk;
500 td2->td_flags = TDF_INMEM;
501 td2->td_lend_user_pri = PRI_MAX;
504 td2->td_vnet = NULL;
505 td2->td_vnet_lpush = NULL;
512 sched_fork(td, td2);
561 thread_cow_get_proc(td2, p2);
617 td2->td_pflags |= (td->td_pflags & TDP_ALTSTACK) | TDP_FORKING;
685 vm_forkproc(td, p2, td2, vm2, fr->fr_flags);
792 td2->td_dbgflags |= TDB_STOPATFORK;
808 thread_lock(td2);
809 TD_SET_CAN_RUN(td2);
810 sched_add(td2, SRQ_BORING);
811 thread_unlock(td2);
828 struct thread *td2;
938 td2 = FIRST_THREAD_IN_PROC(newproc);
939 if (td2 == NULL) {
940 td2 = thread_alloc(pages);
941 if (td2 == NULL) {
945 proc_linkup(newproc, td2);
947 if (td2->td_kstack == 0 || td2->td_kstack_pages != pages) {
948 if (td2->td_kstack != 0)
949 vm_thread_dispose(td2);
950 if (!thread_alloc_stack(td2, pages)) {
1016 do_fork(td, fr, newproc, td2, vm2, fp_procdesc);