Home
last modified time | relevance | path

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

/f-stack/freebsd/kern/
H A Dkern_kthread.c278 newtd = thread_alloc(pages); in kthread_add()
279 if (newtd == NULL) in kthread_add()
285 bzero(&newtd->td_startzero, in kthread_add()
292 vsnprintf(newtd->td_name, sizeof(newtd->td_name), fmt, ap); in kthread_add()
295 TSTHREAD(newtd, newtd->td_name); in kthread_add()
308 thread_link(newtd, p); in kthread_add()
312 TD_SET_CAN_RUN(newtd); in kthread_add()
316 tidhash_add(newtd); in kthread_add()
319 cpuset_kernthread(newtd); in kthread_add()
326 thread_lock(newtd); in kthread_add()
[all …]
H A Dkern_thr.c195 struct thread *newtd; in thread_create() local
241 newtd->td_rb_list = newtd->td_rbp_list = newtd->td_rb_inact = 0; in thread_create()
242 thread_cow_get(newtd, td); in thread_create()
246 thread_cow_free(newtd); in thread_create()
247 thread_free(newtd); in thread_create()
253 thread_link(newtd, p); in thread_create()
254 bcopy(p->p_comm, newtd->td_name, sizeof(newtd->td_name)); in thread_create()
272 tidhash_add(newtd); in thread_create()
277 rtp_to_pri(rtp, newtd); in thread_create()
279 thread_lock(newtd); in thread_create()
[all …]
H A Dkern_thread.c785 thread_cow_get_proc(struct thread *newtd, struct proc *p) in thread_cow_get_proc() argument
789 newtd->td_realucred = crcowget(p->p_ucred); in thread_cow_get_proc()
790 newtd->td_ucred = newtd->td_realucred; in thread_cow_get_proc()
791 newtd->td_limit = lim_hold(p->p_limit); in thread_cow_get_proc()
792 newtd->td_cowgen = p->p_cowgen; in thread_cow_get_proc()
796 thread_cow_get(struct thread *newtd, struct thread *td) in thread_cow_get() argument
800 newtd->td_realucred = crcowget(td->td_realucred); in thread_cow_get()
801 newtd->td_ucred = newtd->td_realucred; in thread_cow_get()
802 newtd->td_limit = lim_hold(td->td_limit); in thread_cow_get()
803 newtd->td_cowgen = td->td_cowgen; in thread_cow_get()
H A Dsched_4bsd.c981 struct thread *newtd; in sched_switch() local
1034 newtd = choosethread(); in sched_switch()
1035 MPASS(newtd->td_lock == &sched_lock); in sched_switch()
1047 if (td != newtd) { in sched_switch()
1053 SDT_PROBE2(sched, , , off__cpu, newtd, newtd->td_proc); in sched_switch()
1064 (*dtrace_vtime_switch_func)(newtd); in sched_switch()
1067 cpu_switch(td, newtd, tmtx); in sched_switch()
H A Dsched_ule.c2049 struct thread *newtd; in sched_switch() local
2122 newtd = choosethread(); in sched_switch()
2123 sched_pctcpu_update(td_get_sched(newtd), 0); in sched_switch()
2129 if (td != newtd) { in sched_switch()
2134 SDT_PROBE2(sched, , , off__cpu, newtd, newtd->td_proc); in sched_switch()
2143 (*dtrace_vtime_switch_func)(newtd); in sched_switch()
2146 cpu_switch(td, newtd, mtx); in sched_switch()
2895 struct thread *newtd; in sched_throw() local
2918 newtd = choosethread(); in sched_throw()
2925 cpu_throw(td, newtd); /* doesn't return */ in sched_throw()
[all …]
H A Dsubr_smp.c1003 struct thread *td, *newtd; in quiesce_all_critical() local
1016 newtd = (struct thread *) in quiesce_all_critical()
1018 if (td != newtd) in quiesce_all_critical()
/f-stack/freebsd/sys/
H A Dproc.h1159 void thread_cow_get_proc(struct thread *newtd, struct proc *p);
1160 void thread_cow_get(struct thread *newtd, struct thread *td);