Home
last modified time | relevance | path

Searched refs:lwp_thread (Results 1 – 25 of 29) sorted by relevance

12

/dragonfly/sys/platform/vkernel64/x86_64/
H A Dvm_machdep.c98 struct pcb *pcb1 = lp1->lwp_thread->td_pcb; in cpu_fork()
111 if (mdcpu->gd_npxthread == lp1->lwp_thread) in cpu_fork()
112 npxsave(lp1->lwp_thread->td_savefpu); in cpu_fork()
120 pcb2 = lp2->lwp_thread->td_pcb; in cpu_fork()
121 *pcb2 = *lp1->lwp_thread->td_pcb; in cpu_fork()
157 *(u_int64_t *)lp2->lwp_thread->td_sp = PSL_USER; in cpu_fork()
158 lp2->lwp_thread->td_sp -= sizeof(void *); in cpu_fork()
182 bcopy(&lp1->lwp_thread->td_tls, &lp2->lwp_thread->td_tls, in cpu_fork()
183 sizeof(lp2->lwp_thread->td_tls)); in cpu_fork()
238 lp->lwp_thread->td_pcb->pcb_rbx = (long)func; /* function */ in cpu_set_fork_handler()
[all …]
H A Dcpu_regs.c243 struct vm86_kernel *vm86 = &lp->lwp_thread->td_pcb->pcb_ext->ext_vm86; in sendsig()
379 if (lp->lwp_thread->td_pcb->pcb_ext == 0) in sys_sigreturn()
381 vm86 = &lp->lwp_thread->td_pcb->pcb_ext->ext_vm86; in sys_sigreturn()
757 if (lp->lwp_thread == NULL || lp->lwp_thread->td_pcb == NULL) in fill_fpregs()
760 fill_fpregs_xmm(&lp->lwp_thread->td_pcb->pcb_save.sv_xmm, in fill_fpregs()
764 bcopy(&lp->lwp_thread->td_pcb->pcb_save.sv_87, fpregs, sizeof *fpregs); in fill_fpregs()
773 &lp->lwp_thread->td_pcb->pcb_save.sv_xmm); in set_fpregs()
776 bcopy(fpregs, &lp->lwp_thread->td_pcb->pcb_save.sv_87, sizeof *fpregs); in set_fpregs()
H A Dtrap.c198 (u_int)((int)lp->lwp_thread->td_sticks - sticks)); in userret()
268 struct thread *td = lp->lwp_thread; in userexit()
1326 userenter(lp->lwp_thread, p); in generic_lwp_return()
1329 if (KTRPOINT(lp->lwp_thread, KTR_SYSRET)) in generic_lwp_return()
/dragonfly/sys/kern/
H A Dusched_bsd4.c342 td = lp->lwp_thread; in bsd4_acquire_curproc()
429 lwkt_deschedule(lp->lwp_thread); in bsd4_acquire_curproc()
554 lwkt_acquire(nlp->lwp_thread); in bsd4_select_curproc()
555 lwkt_schedule(nlp->lwp_thread); in bsd4_select_curproc()
649 gd = lp->lwp_thread->td_gd; in bsd4_setrunqueue()
664 lwkt_giveaway(lp->lwp_thread); in bsd4_setrunqueue()
1598 gd = lp->lwp_thread->td_gd; in bsd4_kick_helper()
1803 lwkt_acquire(nlp->lwp_thread); in sched_thread()
1804 lwkt_schedule(nlp->lwp_thread); in sched_thread()
1820 lwkt_acquire(nlp->lwp_thread); in sched_thread()
[all …]
H A Dkern_kinfo.c234 kl->kl_tdflags = lwp->lwp_thread->td_flags; in fill_kinfo_lwp()
250 kl->kl_mpcount = get_mplock_count(lwp->lwp_thread); in fill_kinfo_lwp()
256 kl->kl_tdprio = lwp->lwp_thread->td_pri; in fill_kinfo_lwp()
259 kl->kl_uticks += lwp->lwp_thread->td_uticks; in fill_kinfo_lwp()
260 kl->kl_sticks += lwp->lwp_thread->td_sticks; in fill_kinfo_lwp()
261 kl->kl_iticks += lwp->lwp_thread->td_iticks; in fill_kinfo_lwp()
267 kl->kl_cpuid = lwp->lwp_thread->td_gd->gd_cpuid; in fill_kinfo_lwp()
274 kl->kl_wchan = (uintptr_t)lwp->lwp_thread->td_wchan; in fill_kinfo_lwp()
275 if (lwp->lwp_thread->td_wmesg) { in fill_kinfo_lwp()
276 strncpy(kl->kl_wmesg, lwp->lwp_thread->td_wmesg, WMESGLEN); in fill_kinfo_lwp()
[all …]
H A Dusched_dummy.c153 thread_t td = lp->lwp_thread; in dummy_acquire_curproc()
182 td->td_release(lp->lwp_thread); in dummy_acquire_curproc()
254 lwkt_acquire(lp->lwp_thread); in dummy_select_curproc()
255 lwkt_schedule(lp->lwp_thread); in dummy_select_curproc()
283 lwkt_schedule(lp->lwp_thread); in dummy_setrunqueue()
293 lwkt_giveaway(lp->lwp_thread); in dummy_setrunqueue()
417 lp->lwp_thread->td_upri = -lp->lwp_priority; in dummy_resetpriority()
508 lwkt_acquire(lp->lwp_thread); in dummy_sched_thread()
509 lwkt_schedule(lp->lwp_thread); in dummy_sched_thread()
H A Dusched_dfly.c333 td = lp->lwp_thread; in dfly_acquire_curproc()
398 lwkt_deschedule(lp->lwp_thread); in dfly_acquire_curproc()
513 lwkt_deschedule(lp->lwp_thread); in dfly_acquire_curproc()
557 lwkt_deschedule(lp->lwp_thread); in dfly_acquire_curproc()
671 lwkt_acquire(nlp->lwp_thread); in dfly_select_curproc()
672 lwkt_schedule(nlp->lwp_thread); in dfly_select_curproc()
792 lwkt_giveaway(lp->lwp_thread); in dfly_setrunqueue_dd()
973 lwkt_acquire(nlp->lwp_thread); in dfly_schedulerclock()
974 lwkt_schedule(nlp->lwp_thread); in dfly_schedulerclock()
2409 lwkt_acquire(nlp->lwp_thread); in dfly_helper_thread()
[all …]
H A Dkern_fork.c125 td = lp->lwp_thread; in wake_umtx_threads()
272 lp->lwp_thread->td_flags |= TDF_EXITING; in lwp_create1()
273 lwkt_remove_tdallq(lp->lwp_thread); in lwp_create1()
275 biosched_done(lp->lwp_thread); in lwp_create1()
276 dsched_exit_thread(lp->lwp_thread); in lwp_create1()
399 uid = lp1->lwp_thread->td_ucred->cr_ruid; in fork1()
419 ok = chgproccnt(lp1->lwp_thread->td_ucred->cr_ruidinfo, 1, in fork1()
507 p2->p_ucred = crhold(lp1->lwp_thread->td_ucred); in fork1()
817 lp2->lwp_thread = td2; in lwp_fork2()
H A Dkern_synch.c303 if (lp->lwp_thread) { in schedcpu_resource()
304 ttime += lp->lwp_thread->td_sticks; in schedcpu_resource()
305 ttime += lp->lwp_thread->td_uticks; in schedcpu_resource()
1308 thread_t td = lp->lwp_thread; in setrunnable()
1443 if ((td = lp->lwp_thread) == NULL) in loadav_count_runnable()
H A Dkern_exit.c823 struct thread *td = lp->lwp_thread; in lwp_wait()
891 struct thread *td = lp->lwp_thread; in lwp_dispose()
906 lp->lwp_thread = NULL; in lwp_dispose()
H A Dkern_ktrace.c636 IO_UNIT | IO_APPEND, lp->lwp_thread->td_ucred); in ktrwrite()
639 IO_UNIT | IO_APPEND, lp->lwp_thread->td_ucred); in ktrwrite()
H A Dkern_sig.c963 if (KTRPOINT(lp->lwp_thread, KTR_PSIG)) in trapsignal()
1480 dtd = lp->lwp_thread; in lwp_signotify()
1555 thread_t td = lp->lwp_thread; in lwp_signotify_remote()
2278 if (KTRPOINT(lp->lwp_thread, KTR_PSIG)) in postsig()
H A Dinit_main.c172 lwp0.lwp_thread = &thread0; in mi_proc0init()
H A Dkern_checkpoint.c775 struct thread *td = lp->lwp_thread; in checkpoint_signal_handler()
H A Dkern_resource.c791 if ((td = lp->lwp_thread) != NULL) { in calcru()
H A Dkern_time.c260 get_thread_cputime(lp->lwp_thread, ats); in kern_clock_gettime()
/dragonfly/sys/platform/pc64/x86_64/
H A Dvm_machdep.c115 struct pcb *pcb1 = lp1->lwp_thread->td_pcb; in cpu_fork()
129 if (mdcpu->gd_npxthread == lp1->lwp_thread) in cpu_fork()
130 npxsave(lp1->lwp_thread->td_savefpu); in cpu_fork()
138 pcb2 = lp2->lwp_thread->td_pcb; in cpu_fork()
139 *pcb2 = *lp1->lwp_thread->td_pcb; in cpu_fork()
203 *(u_int64_t *)lp2->lwp_thread->td_sp = PSL_USER; in cpu_fork()
204 lp2->lwp_thread->td_sp -= sizeof(void *); in cpu_fork()
229 bcopy(&lp1->lwp_thread->td_tls, &lp2->lwp_thread->td_tls, in cpu_fork()
230 sizeof(lp2->lwp_thread->td_tls)); in cpu_fork()
286 lp->lwp_thread->td_pcb->pcb_rbx = (long)func; /* function */ in cpu_set_fork_handler()
[all …]
H A Dmachdep.c839 struct vm86_kernel *vm86 = &lp->lwp_thread->td_pcb->pcb_ext->ext_vm86; in sendsig()
978 if (lp->lwp_thread->td_pcb->pcb_ext == 0) in sys_sigreturn()
980 vm86 = &lp->lwp_thread->td_pcb->pcb_ext->ext_vm86; in sys_sigreturn()
3071 if (lp->lwp_thread == NULL || lp->lwp_thread->td_pcb == NULL) in fill_fpregs()
3074 fill_fpregs_xmm(&lp->lwp_thread->td_pcb->pcb_save.sv_xmm, in fill_fpregs()
3078 bcopy(&lp->lwp_thread->td_pcb->pcb_save.sv_87, fpregs, sizeof *fpregs); in fill_fpregs()
3087 &lp->lwp_thread->td_pcb->pcb_save.sv_xmm); in set_fpregs()
3090 bcopy(fpregs, &lp->lwp_thread->td_pcb->pcb_save.sv_87, sizeof *fpregs); in set_fpregs()
3110 if (lp->lwp_thread == NULL || (pcb = lp->lwp_thread->td_pcb) == NULL) in fill_dbregs()
3162 pcb = lp->lwp_thread->td_pcb; in set_dbregs()
H A Dtrap.c231 (u_int)((int)lp->lwp_thread->td_sticks - sticks)); in userret()
305 struct thread *td = lp->lwp_thread; in userexit()
1502 userenter(lp->lwp_thread, p); in generic_lwp_return()
1505 if (KTRPOINTP(p, lp->lwp_thread, KTR_SYSRET)) in generic_lwp_return()
/dragonfly/sys/sys/
H A Dproc.h216 struct thread *lwp_thread; /* backpointer to proc's thread */ member
342 #define lwp_wchan lwp_thread->td_wchan
343 #define lwp_wmesg lwp_thread->td_wmesg
/dragonfly/lib/libkvm/
H A Dkvm_proc.c363 if (KREAD(kd, (u_long)lwp.lwp_thread, &thread)) { in kvm_proclist()
365 lwp.lwp_thread); in kvm_proclist()
368 lwp.lwp_thread = &thread; in kvm_proclist()
/dragonfly/sys/ddb/
H A Ddb_ps.c95 db_dump_td_tokens(lp->lwp_thread); in db_ps()
/dragonfly/sys/dev/virtual/nvmm/x86/
H A Dnvmm_x86.h799 struct pcb *pcb = curthread->td_lwp->lwp_thread->td_pcb; in x86_curthread_save_dbregs()
814 struct pcb *pcb = curthread->td_lwp->lwp_thread->td_pcb; in x86_curthread_restore_dbregs()
/dragonfly/sys/netproto/smb/
H A Dsmb_subr.c407 lp2->lwp_thread->td_ucred = crhold(proc0.p_ucred); in smb_kthread_create()
H A Dsmb_iod.c712 iod->iod_td = ONLY_LWP_IN_PROC(newp)->lwp_thread; in smb_iod_create()

12