Searched refs:newtd (Results 1 - 7 of 7) sorted by relevance

/freebsd-9.3-release/sys/kern/
H A Dkern_thr.c159 struct thread *newtd; local
198 newtd = thread_alloc(0);
199 if (newtd == NULL) {
204 cpu_set_upcall(newtd, td);
216 suword_lwpid(child_tid, newtd->td_tid)) ||
218 suword_lwpid(parent_tid, newtd->td_tid))) {
219 thread_free(newtd);
224 bzero(&newtd->td_startzero,
226 bcopy(&td->td_startcopy, &newtd->td_startcopy,
228 newtd
[all...]
H A Dkern_kthread.c247 * fmt and following will be *printf'd into (*newtd)->td_name (for ps, etc.).
254 struct thread *newtd, *oldtd; local
264 newtd = thread_alloc(pages);
265 if (newtd == NULL)
271 bzero(&newtd->td_startzero,
274 bcopy(&oldtd->td_startcopy, &newtd->td_startcopy,
279 vsnprintf(newtd->td_name, sizeof(newtd->td_name), fmt, ap);
282 newtd->td_proc = p; /* needed for cpu_set_upcall */
287 cpu_set_upcall(newtd, oldt
[all...]
H A Dsched_4bsd.c959 sched_switch(struct thread *td, struct thread *newtd, int flags) argument
1010 if (newtd) {
1019 KASSERT((newtd->td_inhibitors == 0),
1021 newtd->td_flags |= TDF_DIDRUN;
1022 TD_SET_RUNNING(newtd);
1023 if ((newtd->td_flags & TDF_NOLOAD) == 0)
1026 newtd = choosethread();
1027 MPASS(newtd->td_lock == &sched_lock);
1030 if (td != newtd) {
1036 SDT_PROBE2(sched, , , off__cpu, newtd, newt
[all...]
H A Dkern_synch.c423 mi_switch(int flags, struct thread *newtd) argument
441 KASSERT(newtd != curthread, ("mi_switch: preempting back to ourself"));
485 sched_switch(td, newtd, flags);
H A Dsched_ule.c1814 sched_switch(struct thread *td, struct thread *newtd, int flags) argument
1823 KASSERT(newtd == NULL, ("sched_switch: Unsupported newtd argument"));
1874 newtd = choosethread();
1878 if (td != newtd) {
1883 SDT_PROBE2(sched, , , off__cpu, newtd, newtd->td_proc);
1885 TDQ_LOCKPTR(tdq)->mtx_lock = (uintptr_t)newtd;
1886 sched_pctcpu_update(newtd->td_sched, 0);
1895 (*dtrace_vtime_switch_func)(newtd);
2630 struct thread *newtd; local
[all...]
/freebsd-9.3-release/sys/sys/
H A Dsched.h99 void sched_switch(struct thread *td, struct thread *newtd, int flags);
H A Dproc.h879 void mi_switch(int flags, struct thread *newtd);

Completed in 58 milliseconds