Searched refs:td2 (Results 1 - 25 of 25) sorted by relevance

/freebsd-current/sys/arm64/arm64/
H A Dvm_machdep.c70 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
92 pcb2 = (struct pcb *)(td2->td_kstack +
93 td2->td_kstack_pages * PAGE_SIZE) - 1;
95 td2->td_pcb = pcb2;
101 ptrauth_fork(td2, td1);
109 td2->td_frame = tf;
112 td2->td_pcb->pcb_x[PCB_X19] = (uintptr_t)fork_return;
113 td2->td_pcb->pcb_x[PCB_X20] = (uintptr_t)td2;
114 td2
[all...]
/freebsd-current/sys/fs/procfs/
H A Dprocfs_fpregs.c56 * PROC(write, fpregs, td2, &r) becomes
57 * proc_write_fpregs(td2, &r) or
58 * proc_write_fpregs32(td2, &r32)
80 struct thread *td2; local
100 td2 = FIRST_THREAD_IN_PROC(p);
103 if (SV_PROC_FLAG(td2->td_proc, SV_ILP32) == 0) {
112 error = PROC(read, fpregs, td2, &r);
123 error = PROC(write, fpregs, td2, &r);
H A Dprocfs_regs.c56 * PROC(write, regs, td2, &r) becomes
57 * proc_write_regs(td2, &r) or
58 * proc_write_regs32(td2, &r32)
80 struct thread *td2; local
100 td2 = FIRST_THREAD_IN_PROC(p);
103 if ((SV_PROC_FLAG(td2->td_proc, SV_ILP32)) == 0) {
112 error = PROC(read, regs, td2, &r);
123 error = PROC(write, regs, td2, &r);
H A Dprocfs_dbregs.c62 * PROC(write, dbregs, td2, &r) becomes
63 * proc_write_dbregs(td2, &r) or
64 * proc_write_dbregs32(td2, &r32)
86 struct thread *td2; local
102 td2 = FIRST_THREAD_IN_PROC(p);
105 if (SV_PROC_FLAG(td2->td_proc, SV_ILP32) == 0) {
114 error = PROC(read, dbregs, td2, &r);
125 error = PROC(write, dbregs, td2, &r);
/freebsd-current/sys/kern/
H A Dsys_process.c753 * PROC_READ(regs, td2, addr);
755 * proc_read_regs(td2, addr);
757 * proc_read_regs32(td2, addr);
833 struct thread *td2; local
838 FOREACH_THREAD_IN_PROC(p, td2) {
839 if ((td2->td_dbgflags & TDB_SSWITCH) != 0)
840 return (td2);
851 struct thread *td2 = NULL, *td3; local
904 td2 = tdfind(pid, -1);
905 if (td2
[all...]
H A Dkern_thread.c936 struct thread *td2; local
973 td2 = FIRST_THREAD_IN_PROC(p);
974 sched_exit_thread(td2, td);
1141 weed_inhib(int mode, struct thread *td2, struct proc *p) argument
1147 THREAD_LOCK_ASSERT(td2, MA_OWNED);
1158 if (TD_IS_SUSPENDED(td2)) {
1159 wakeup_swapper |= thread_unsuspend_one(td2, p, true);
1160 thread_lock(td2);
1163 if (TD_CAN_ABORT(td2)) {
1164 wakeup_swapper |= sleepq_abort(td2, EINT
1226 struct thread *td2; local
1356 ("td %p is not suspended", td2)); local
[all...]
H A Dtty_info.c109 thread_compare(struct thread *td, struct thread *td2) argument
126 thread_lock(td2);
127 runb = TD_IS_RUNNING(td2) || TD_ON_RUNQ(td2);
128 estb = sched_pctcpu(td2);
129 slpb = td2->td_flags & TDF_SINTR;
130 thread_unlock(td2);
161 return (td < td2);
H A Dkern_fork.c366 do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread *td2, argument
404 tidhash_add(td2);
461 bzero(&td2->td_startzero,
464 bcopy(&td->td_startcopy, &td2->td_startcopy,
467 bcopy(&p2->p_comm, &td2->td_name, sizeof(td2->td_name));
468 td2->td_sigstk = td->td_sigstk;
469 td2->td_flags = TDF_INMEM;
470 td2->td_lend_user_pri = PRI_MAX;
473 td2
850 struct thread *td2; local
[all...]
H A Dkern_switch.c441 struct thread *td2; local
442 td2 = td = TAILQ_FIRST(rqh);
444 while (count-- && td2) {
445 if (td2->td_lastcpu == cpu) {
446 td = td2;
449 td2 = TAILQ_NEXT(td2, td_runq);
H A Dkern_sig.c2019 struct thread *td2; local
2037 td2 = NULL;
2040 td2 = tdfind((lwpid_t)pid, p->p_pid);
2041 if (td2 == NULL)
2054 error = tdsendsignal(p, td2, ksi.ksi_signo, &ksi);
2784 struct thread *td2; local
2791 FOREACH_THREAD_IN_PROC(p, td2) {
2792 thread_lock(td2);
2793 ast_sched_locked(td2, TDA_SUSPEND);
2794 if ((TD_IS_SLEEPING(td2) || TD_IS_SWAPPE
2834 struct thread *td2; local
[all...]
H A Dsubr_turnstile.c314 struct thread *td1, *td2; local
340 td2 = TAILQ_NEXT(td, td_lockq);
342 (td2 != NULL && td->td_priority > td2->td_priority)) {
H A Dkern_ktrace.c639 struct thread *td2; local
642 td2 = FIRST_THREAD_IN_PROC(p);
643 req = ktr_getrequest_entered(td2, KTR_PROCCTOR);
648 ktr_enqueuerequest(td2, req);
H A Dkern_time.c293 struct thread *td2; local
301 td2 = tdfind(tid, p->p_pid);
302 if (td2 == NULL)
304 kern_thread_cputime(td2, ats);
305 PROC_UNLOCK(td2->td_proc);
/freebsd-current/sys/riscv/riscv/
H A Dvm_machdep.c66 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
76 pcb2 = (struct pcb *)(td2->td_kstack +
77 td2->td_kstack_pages * PAGE_SIZE) - 1;
79 td2->td_pcb = pcb2;
94 td2->td_frame = tf;
97 td2->td_pcb->pcb_s[0] = (uintptr_t)fork_return;
98 td2->td_pcb->pcb_s[1] = (uintptr_t)td2;
99 td2->td_pcb->pcb_ra = (uintptr_t)fork_trampoline;
100 td2
[all...]
/freebsd-current/sys/powerpc/powerpc/
H A Dvm_machdep.c108 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
126 pcb = (struct pcb *)((td2->td_kstack +
127 td2->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x2fUL);
128 td2->td_pcb = pcb;
146 td2->td_frame = tf;
154 cf->cf_arg0 = (register_t)td2;
171 td2->td_md.md_spinlock_count = 1;
172 td2->td_md.md_saved_msr = psl_kernset;
/freebsd-current/sys/arm/arm/
H A Dvm_machdep.c91 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
102 (td2->td_kstack + td2->td_kstack_pages * PAGE_SIZE) - 1;
110 td2->td_pcb = pcb2;
120 td2->td_frame = (struct trapframe *)pcb2 - 1;
121 *td2->td_frame = *td1->td_frame;
130 pcb2->pcb_regs.sf_r5 = (register_t)td2;
132 pcb2->pcb_regs.sf_sp = STACKALIGN(td2->td_frame);
136 vfp_new_thread(td2, td1, true);
139 tf = td2
[all...]
/freebsd-current/sys/compat/linux/
H A Dlinux_fork.c70 struct thread *td2; local
78 td2 = FIRST_THREAD_IN_PROC(p2);
80 linux_proc_init(td, td2, false);
87 thread_lock(td2);
88 TD_SET_CAN_RUN(td2);
89 sched_add(td2, SRQ_BORING);
100 struct thread *td2; local
108 td2 = FIRST_THREAD_IN_PROC(p2);
110 linux_proc_init(td, td2, false);
117 thread_lock(td2);
131 struct thread *td2; local
[all...]
H A Dlinux_futex.c898 struct thread *td2; local
906 td2 = linux_tdfind(td, args->pid, -1);
907 if (td2 == NULL)
909 if (SV_PROC_ABI(td2->td_proc) != SV_ABI_LINUX) {
910 PROC_UNLOCK(td2->td_proc);
914 em = em_find(td2);
919 p_candebug(td, td2->td_proc)) {
920 PROC_UNLOCK(td2->td_proc);
925 PROC_UNLOCK(td2->td_proc);
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dtdata.c458 /* Merge td2 into td1. td2 is destroyed by the merge */
460 tdata_merge(tdata_t *td1, tdata_t *td2) argument
462 td1->td_curemark = MAX(td1->td_curemark, td2->td_curemark);
463 td1->td_curvgen = MAX(td1->td_curvgen, td2->td_curvgen);
464 td1->td_nextid = MAX(td1->td_nextid, td2->td_nextid);
466 hash_merge(td1->td_iihash, td2->td_iihash);
468 /* Add td2's type tree to the hashes */
469 tdata_build_hashes_common(td1, td2->td_iihash);
471 list_concat(&td1->td_fwdlist, td2
[all...]
/freebsd-current/sys/i386/i386/
H A Dvm_machdep.c138 copy_thread(struct thread *td1, struct thread *td2) argument
142 pcb2 = td2->td_pcb;
145 if ((td2->td_pflags & TDP_KTHREAD) == 0) {
161 if ((td2->td_pflags & TDP_KTHREAD) != 0) {
163 set_fsbase(td2, 0);
164 set_gsbase(td2, 0);
180 pcb2->pcb_esp = (int)td2->td_frame - sizeof(void *); /* trampoline arg */
181 pcb2->pcb_ebx = (int)td2; /* trampoline arg */
196 td2->td_md.md_spinlock_count = 1;
197 td2
206 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
[all...]
/freebsd-current/sys/amd64/amd64/
H A Dvm_machdep.c138 copy_thread(struct thread *td1, struct thread *td2) argument
142 pcb2 = td2->td_pcb;
145 if ((td2->td_pflags & TDP_KTHREAD) == 0) {
158 if ((td2->td_pflags & TDP_KTHREAD) != 0) {
169 td2->td_frame = (struct trapframe *)td2->td_md.md_stack_base - 1;
177 pcb2->pcb_rsp = (register_t)td2->td_frame - sizeof(void *);
178 pcb2->pcb_rbx = (register_t)td2; /* fork_trampoline argument */
191 td2->td_md.md_spinlock_count = 1;
192 td2
220 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) argument
[all...]
/freebsd-current/lib/libc/tests/nss/
H A Dtestutil.h62 #define TEST_DATA_COMPARE(ent, td1, td2, fcmp, mdata)\
63 __##ent##_test_data_compare(td1, td2, fcmp, mdata);
127 __##ent##_test_data_compare(struct ent##_test_data *td1, struct ent##_test_data *td2,\
134 ATF_REQUIRE(td2 != NULL); \
138 e2 = STAILQ_FIRST(&td2->snapshot_data); \
314 #define DO_2PASS_TEST(ent, td1, td2, f, mdata) \
315 __##ent##_2pass_test(td1, td2, f, mdata)
320 struct ent##_test_data *td2, \
326 rv = __##ent##_test_data_compare(td1, td2, cmp_func, cmp_mdata);\
/freebsd-current/sys/i386/linux/
H A Dlinux_ptrace_machdep.c329 struct thread *td2; local
381 td2 = FIRST_THREAD_IN_PROC(p);
382 error = linux_proc_read_fpxregs(td2, &r.fpxreg);
392 td2 = FIRST_THREAD_IN_PROC(p);
393 error = linux_proc_write_fpxregs(td2, &r.fpxreg);
/freebsd-current/sys/vm/
H A Dvm_glue.c777 vm_forkproc(struct thread *td, struct proc *p2, struct thread *td2, argument
795 cpu_fork(td, p2, td2, flags);
803 dset = td2->td_domain.dr_policy;
818 cpu_fork(td, p2, td2, flags);
/freebsd-current/sys/compat/linprocfs/
H A Dlinprocfs.c1073 struct thread *td2; local
1080 td2 = FIRST_THREAD_IN_PROC(p);
1094 switch(TD_GET_STATE(td2)) {

Completed in 275 milliseconds