Searched refs:newtd (Results 1 - 7 of 7) sorted by relevance
/freebsd-10.0-release/sys/kern/ |
H A D | kern_thr.c | 159 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 D | kern_kthread.c | 247 * 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, 273 bcopy(&oldtd->td_startcopy, &newtd->td_startcopy, 278 vsnprintf(newtd->td_name, sizeof(newtd->td_name), fmt, ap); 281 newtd->td_proc = p; /* needed for cpu_set_upcall */ 286 cpu_set_upcall(newtd, oldt [all...] |
H A D | sched_4bsd.c | 959 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) { 1047 (*dtrace_vtime_switch_func)(newtd); [all...] |
H A D | kern_synch.c | 432 mi_switch(int flags, struct thread *newtd) argument 450 KASSERT(newtd != curthread, ("mi_switch: preempting back to ourself")); 494 sched_switch(td, newtd, flags);
|
H A D | sched_ule.c | 1872 sched_switch(struct thread *td, struct thread *newtd, int flags) argument 1881 KASSERT(newtd == NULL, ("sched_switch: Unsupported newtd argument")); 1932 newtd = choosethread(); 1936 if (td != newtd) { 1941 SDT_PROBE2(sched, , , off_cpu, newtd, newtd->td_proc); 1943 TDQ_LOCKPTR(tdq)->mtx_lock = (uintptr_t)newtd; 1944 sched_pctcpu_update(newtd->td_sched, 0); 1953 (*dtrace_vtime_switch_func)(newtd); 2694 struct thread *newtd; local [all...] |
/freebsd-10.0-release/sys/sys/ |
H A D | sched.h | 99 void sched_switch(struct thread *td, struct thread *newtd, int flags);
|
H A D | proc.h | 867 void mi_switch(int flags, struct thread *newtd);
|
Completed in 128 milliseconds