Searched refs:newtd (Results 1 - 10 of 10) sorted by relevance
/freebsd-12-stable/sys/kern/ |
H A D | kern_kthread.c | 260 * fmt and following will be *printf'd into (*newtd)->td_name (for ps, etc.). 267 struct thread *newtd, *oldtd; local 277 newtd = thread_alloc(pages); 278 if (newtd == NULL) 284 bzero(&newtd->td_startzero, 286 newtd->td_pflags2 = 0; 287 newtd->td_errno = 0; 288 bcopy(&oldtd->td_startcopy, &newtd->td_startcopy, 293 vsnprintf(newtd->td_name, sizeof(newtd [all...] |
H A D | kern_thr.c | 195 struct thread *newtd; local 230 error = kern_thr_alloc(p, 0, &newtd); 234 cpu_copy_thread(newtd, td); 236 bzero(&newtd->td_startzero, 238 newtd->td_pflags2 = 0; 239 newtd->td_errno = 0; 240 bcopy(&td->td_startcopy, &newtd->td_startcopy, 242 newtd->td_proc = td->td_proc; 243 newtd->td_rb_list = newtd [all...] |
H A D | sched_4bsd.c | 947 sched_switch(struct thread *td, struct thread *newtd, int flags) argument 999 if (newtd) { 1008 KASSERT((newtd->td_inhibitors == 0), 1010 newtd->td_flags |= TDF_DIDRUN; 1011 TD_SET_RUNNING(newtd); 1012 if ((newtd->td_flags & TDF_NOLOAD) == 0) 1015 newtd = choosethread(); 1016 MPASS(newtd->td_lock == &sched_lock); 1029 if (td != newtd) { 1035 SDT_PROBE2(sched, , , off__cpu, newtd, newt [all...] |
H A D | kern_thread.c | 449 thread_cow_get_proc(struct thread *newtd, struct proc *p) argument 453 newtd->td_ucred = crhold(p->p_ucred); 454 newtd->td_limit = lim_hold(p->p_limit); 455 newtd->td_cowgen = p->p_cowgen; 459 thread_cow_get(struct thread *newtd, struct thread *td) argument 462 newtd->td_ucred = crhold(td->td_ucred); 463 newtd->td_limit = lim_hold(td->td_limit); 464 newtd->td_cowgen = td->td_cowgen;
|
H A D | kern_synch.c | 397 mi_switch(int flags, struct thread *newtd) argument 413 KASSERT(newtd != curthread, ("mi_switch: preempting back to ourself")); 452 sched_switch(td, newtd, flags);
|
H A D | sched_ule.c | 2037 sched_switch(struct thread *td, struct thread *newtd, int flags) argument 2046 KASSERT(newtd == NULL, ("sched_switch: Unsupported newtd argument")); 2113 newtd = choosethread(); 2117 if (td != newtd) { 2122 SDT_PROBE2(sched, , , off__cpu, newtd, newtd->td_proc); 2124 TDQ_LOCKPTR(tdq)->mtx_lock = (uintptr_t)newtd; 2125 sched_pctcpu_update(td_get_sched(newtd), 0); 2134 (*dtrace_vtime_switch_func)(newtd); 2881 struct thread *newtd; local [all...] |
/freebsd-12-stable/sys/compat/linux/ |
H A D | linux_fork.c | 242 struct thread *newtd; local 273 error = kern_thr_alloc(p, 0, &newtd); 277 cpu_copy_thread(newtd, td); 279 bzero(&newtd->td_startzero, 281 newtd->td_pflags2 = 0; 282 newtd->td_errno = 0; 283 bcopy(&td->td_startcopy, &newtd->td_startcopy, 286 newtd->td_proc = p; 287 thread_cow_get(newtd, td); 290 linux_proc_init(td, newtd, arg [all...] |
H A D | linux_emul.c | 119 linux_proc_init(struct thread *td, struct thread *newtd, int flags) argument 126 if (newtd != NULL) { 127 p = newtd->td_proc; 132 LINUX_CTR1(proc_init, "thread newtd(%d)", 133 newtd->td_tid); 135 em->em_tid = newtd->td_tid; 137 LINUX_CTR1(proc_init, "fork newtd(%d)", p->p_pid); 145 newtd->td_emuldata = em; 152 LINUX_CTR1(proc_init, "exec newtd(%d)", p->p_pid);
|
/freebsd-12-stable/sys/sys/ |
H A D | sched.h | 102 void sched_switch(struct thread *td, struct thread *newtd, int flags);
|
H A D | proc.h | 1076 void mi_switch(int flags, struct thread *newtd); 1145 void thread_cow_get_proc(struct thread *newtd, struct proc *p); 1146 void thread_cow_get(struct thread *newtd, struct thread *td);
|
Completed in 194 milliseconds