Home
last modified time | relevance | path

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

12

/NextBSD/sys/kern/
HDkern_thread.c463 struct thread *td2; in thread_exit() local
501 td2 = FIRST_THREAD_IN_PROC(p); in thread_exit()
502 sched_exit_thread(td2, td); in thread_exit()
659 weed_inhib(int mode, struct thread *td2, struct proc *p) in weed_inhib() argument
665 THREAD_LOCK_ASSERT(td2, MA_OWNED); in weed_inhib()
670 if (TD_IS_SUSPENDED(td2)) in weed_inhib()
671 wakeup_swapper |= thread_unsuspend_one(td2, p, true); in weed_inhib()
672 if (TD_ON_SLEEPQ(td2) && (td2->td_flags & TDF_SINTR) != 0) in weed_inhib()
673 wakeup_swapper |= sleepq_abort(td2, EINTR); in weed_inhib()
676 if (TD_IS_SUSPENDED(td2) && (td2->td_flags & TDF_BOUNDARY) == 0) in weed_inhib()
[all …]
HDsys_process.c689 struct thread *td2 = NULL, *td3; local
734 td2 = tdfind(pid, -1);
735 if (td2 == NULL) {
740 p = td2->td_proc;
768 td2 = p->p_xthread;
770 td2 = FIRST_THREAD_IN_PROC(p);
772 tid = td2->td_tid;
781 if (SV_PROC_FLAG(td2->td_proc, SV_ILP32))
876 FIX_SSTEP(td2);
917 CTR2(KTR_PTRACE, "PT_CLEARSTEP: tid %d (pid %d)", td2->td_tid,
[all …]
HDkern_fork.c369 do_fork(struct thread *td, int flags, struct proc *p2, struct thread *td2, in do_fork() argument
394 tidhash_add(td2); in do_fork()
463 bzero(&td2->td_startzero, in do_fork()
466 bcopy(&td->td_startcopy, &td2->td_startcopy, in do_fork()
469 bcopy(&p2->p_comm, &td2->td_name, sizeof(td2->td_name)); in do_fork()
470 td2->td_sigstk = td->td_sigstk; in do_fork()
471 td2->td_flags = TDF_INMEM; in do_fork()
472 td2->td_lend_user_pri = PRI_MAX; in do_fork()
475 td2->td_vnet = NULL; in do_fork()
476 td2->td_vnet_lpush = NULL; in do_fork()
[all …]
HDtty_info.c101 thread_compare(struct thread *td, struct thread *td2) in thread_compare() argument
118 thread_lock(td2); in thread_compare()
119 runb = TD_IS_RUNNING(td2) | TD_ON_RUNQ(td2); in thread_compare()
120 estb = sched_pctcpu(td2); in thread_compare()
121 slpb = td2->td_flags & TDF_SINTR; in thread_compare()
122 thread_unlock(td2); in thread_compare()
153 return (td < td2); in thread_compare()
HDkern_switch.c416 struct thread *td2; in runq_choose_fuzz() local
417 td2 = td = TAILQ_FIRST(rqh); in runq_choose_fuzz()
419 while (count-- && td2) { in runq_choose_fuzz()
420 if (td2->td_lastcpu == cpu) { in runq_choose_fuzz()
421 td = td2; in runq_choose_fuzz()
424 td2 = TAILQ_NEXT(td2, td_runq); in runq_choose_fuzz()
HDkern_sig.c2461 struct thread *td2; in sig_suspend_threads() local
2466 FOREACH_THREAD_IN_PROC(p, td2) { in sig_suspend_threads()
2467 thread_lock(td2); in sig_suspend_threads()
2468 td2->td_flags |= TDF_ASTPENDING | TDF_NEEDSUSPCHK; in sig_suspend_threads()
2469 if ((TD_IS_SLEEPING(td2) || TD_IS_SWAPPED(td2)) && in sig_suspend_threads()
2470 (td2->td_flags & TDF_SINTR)) { in sig_suspend_threads()
2471 if (td2->td_flags & TDF_SBDRY) { in sig_suspend_threads()
2477 KASSERT(!TD_IS_SUSPENDED(td2), in sig_suspend_threads()
2479 } else if (!TD_IS_SUSPENDED(td2)) { in sig_suspend_threads()
2480 thread_suspend_one(td2); in sig_suspend_threads()
[all …]
HDkern_ktrace.c543 struct thread *td2; in ktrprocctor_entered() local
546 td2 = FIRST_THREAD_IN_PROC(p); in ktrprocctor_entered()
547 req = ktr_getrequest_entered(td2, KTR_PROCCTOR); in ktrprocctor_entered()
552 ktr_enqueuerequest(td2, req); in ktrprocctor_entered()
HDsubr_turnstile.c291 struct thread *td1, *td2; in turnstile_adjust_thread() local
317 td2 = TAILQ_NEXT(td, td_lockq); in turnstile_adjust_thread()
319 (td2 != NULL && td->td_priority > td2->td_priority)) { in turnstile_adjust_thread()
/NextBSD/sys/arm64/arm64/
HDvm_machdep.c60 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument
81 pcb2 = (struct pcb *)(td2->td_kstack + in cpu_fork()
82 td2->td_kstack_pages * PAGE_SIZE) - 1; in cpu_fork()
84 td2->td_pcb = pcb2; in cpu_fork()
87 td2->td_pcb->pcb_l1addr = in cpu_fork()
88 vtophys(vmspace_pmap(td2->td_proc->p_vmspace)->pm_l1); in cpu_fork()
96 td2->td_frame = tf; in cpu_fork()
99 td2->td_pcb->pcb_x[8] = (uintptr_t)fork_return; in cpu_fork()
100 td2->td_pcb->pcb_x[9] = (uintptr_t)td2; in cpu_fork()
101 td2->td_pcb->pcb_x[PCB_LR] = (uintptr_t)fork_trampoline; in cpu_fork()
[all …]
/NextBSD/sys/compat/linux/
HDlinux_fork.c69 struct thread *td2; in linux_fork() local
80 td2 = FIRST_THREAD_IN_PROC(p2); in linux_fork()
82 linux_proc_init(td, td2, 0); in linux_fork()
89 thread_lock(td2); in linux_fork()
90 TD_SET_CAN_RUN(td2); in linux_fork()
91 sched_add(td2, SRQ_BORING); in linux_fork()
92 thread_unlock(td2); in linux_fork()
102 struct thread *td2; in linux_vfork() local
113 td2 = FIRST_THREAD_IN_PROC(p2); in linux_vfork()
115 linux_proc_init(td, td2, 0); in linux_vfork()
[all …]
HDlinux_futex.c1086 struct thread *td2; in linux_get_robust_list() local
1096 td2 = tdfind(args->pid, -1); in linux_get_robust_list()
1097 if (td2 == NULL) { in linux_get_robust_list()
1102 if (SV_PROC_ABI(td2->td_proc) != SV_ABI_LINUX) { in linux_get_robust_list()
1105 PROC_UNLOCK(td2->td_proc); in linux_get_robust_list()
1109 em = em_find(td2); in linux_get_robust_list()
1114 p_candebug(td, td2->td_proc)) { in linux_get_robust_list()
1115 PROC_UNLOCK(td2->td_proc); in linux_get_robust_list()
1123 PROC_UNLOCK(td2->td_proc); in linux_get_robust_list()
/NextBSD/sys/arm/arm/
HDvm_machdep.c97 struct thread *td2, int flags) in cpu_fork() argument
108 (td2->td_kstack + td2->td_kstack_pages * PAGE_SIZE) - 1; in cpu_fork()
111 pmap_use_minicache(td2->td_kstack, td2->td_kstack_pages * PAGE_SIZE); in cpu_fork()
114 td2->td_pcb = pcb2; in cpu_fork()
124 td2->td_frame = (struct trapframe *)pcb2 - 1; in cpu_fork()
125 *td2->td_frame = *td1->td_frame; in cpu_fork()
134 pcb2->pcb_regs.sf_r5 = (register_t)td2; in cpu_fork()
136 pcb2->pcb_regs.sf_sp = STACKALIGN(td2->td_frame); in cpu_fork()
141 tf = td2->td_frame; in cpu_fork()
148 td2->td_md.md_spinlock_count = 1; in cpu_fork()
[all …]
/NextBSD/sys/powerpc/powerpc/
HDvm_machdep.c108 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument
122 pcb = (struct pcb *)((td2->td_kstack + in cpu_fork()
123 td2->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x2fUL); in cpu_fork()
124 td2->td_pcb = pcb; in cpu_fork()
142 td2->td_frame = tf; in cpu_fork()
150 cf->cf_arg0 = (register_t)td2; in cpu_fork()
167 td2->td_md.md_spinlock_count = 1; in cpu_fork()
168 td2->td_md.md_saved_msr = PSL_KERNSET; in cpu_fork()
/NextBSD/cddl/contrib/opensolaris/tools/ctf/cvt/
HDtdata.c460 tdata_merge(tdata_t *td1, tdata_t *td2) in tdata_merge() argument
462 td1->td_curemark = MAX(td1->td_curemark, td2->td_curemark); in tdata_merge()
463 td1->td_curvgen = MAX(td1->td_curvgen, td2->td_curvgen); in tdata_merge()
464 td1->td_nextid = MAX(td1->td_nextid, td2->td_nextid); in tdata_merge()
466 hash_merge(td1->td_iihash, td2->td_iihash); in tdata_merge()
469 tdata_build_hashes_common(td1, td2->td_iihash); in tdata_merge()
471 list_concat(&td1->td_fwdlist, td2->td_fwdlist); in tdata_merge()
472 td2->td_fwdlist = NULL; in tdata_merge()
474 slist_merge(&td1->td_labels, td2->td_labels, in tdata_merge()
476 td2->td_labels = NULL; in tdata_merge()
[all …]
/NextBSD/sys/amd64/amd64/
HDvm_machdep.c150 cpu_fork(td1, p2, td2, flags) in cpu_fork() argument
153 struct thread *td2;
180 pcb2 = get_pcb_td(td2);
181 td2->td_pcb = pcb2;
200 td2->td_frame = (struct trapframe *)td2->td_pcb - 1;
201 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe));
203 td2->td_frame->tf_rax = 0; /* Child returns zero */
204 td2->td_frame->tf_rflags &= ~PSL_C; /* success */
205 td2->td_frame->tf_rdx = 1;
216 td2->td_frame->tf_rflags &= ~PSL_T;
[all …]
/NextBSD/sys/mips/mips/
HDvm_machdep.c99 struct thread *td2,int flags) in cpu_fork() argument
112 pcb2 = td2->td_pcb; in cpu_fork()
125 td2->td_md.md_flags = td1->td_md.md_flags & MDTD_FPUSED; in cpu_fork()
130 td2->td_frame->v0 = 0; in cpu_fork()
131 td2->td_frame->v1 = 1; in cpu_fork()
132 td2->td_frame->a3 = 0; in cpu_fork()
139 pcb2->pcb_context[PCB_REG_SP] = (register_t)(((vm_offset_t)td2->td_pcb & in cpu_fork()
142 pcb2->pcb_context[PCB_REG_S1] = (register_t)(intptr_t)td2; in cpu_fork()
143 pcb2->pcb_context[PCB_REG_S2] = (register_t)(intptr_t)td2->td_frame; in cpu_fork()
153 td2->td_md.md_tls = td1->td_md.md_tls; in cpu_fork()
[all …]
/NextBSD/sys/i386/i386/
HDvm_machdep.c178 cpu_fork(td1, p2, td2, flags) in cpu_fork() argument
181 struct thread *td2;
221 pcb2 = get_pcb_td(td2);
222 td2->td_pcb = pcb2;
242 td2->td_frame = (struct trapframe *)((caddr_t)td2->td_pcb - 16) - 1;
243 bcopy(td1->td_frame, td2->td_frame, sizeof(struct trapframe));
245 td2->td_frame->tf_eax = 0; /* Child returns zero */
246 td2->td_frame->tf_eflags &= ~PSL_C; /* success */
247 td2->td_frame->tf_edx = 1;
258 td2->td_frame->tf_eflags &= ~PSL_T;
[all …]
/NextBSD/sys/fs/procfs/
HDprocfs_dbregs.c91 struct thread *td2; in procfs_doprocdbregs() local
107 td2 = FIRST_THREAD_IN_PROC(p); in procfs_doprocdbregs()
110 if (SV_PROC_FLAG(td2->td_proc, SV_ILP32) == 0) { in procfs_doprocdbregs()
117 error = PROC(read, dbregs, td2, &r); in procfs_doprocdbregs()
128 error = PROC(write, dbregs, td2, &r); in procfs_doprocdbregs()
HDprocfs_regs.c85 struct thread *td2; in procfs_doprocregs() local
106 td2 = FIRST_THREAD_IN_PROC(p); in procfs_doprocregs()
109 if ((SV_PROC_FLAG(td2->td_proc, SV_ILP32)) == 0) { in procfs_doprocregs()
116 error = PROC(read, regs, td2, &r); in procfs_doprocregs()
127 error = PROC(write, regs, td2, &r); in procfs_doprocregs()
HDprocfs_fpregs.c85 struct thread *td2; in procfs_doprocfpregs() local
106 td2 = FIRST_THREAD_IN_PROC(p); in procfs_doprocfpregs()
109 if (SV_PROC_FLAG(td2->td_proc, SV_ILP32) == 0) { in procfs_doprocfpregs()
116 error = PROC(read, fpregs, td2, &r); in procfs_doprocfpregs()
127 error = PROC(write, fpregs, td2, &r); in procfs_doprocfpregs()
/NextBSD/sys/sparc64/sparc64/
HDvm_machdep.c241 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() argument
262 pcb2 = (struct pcb *)((td2->td_kstack + td2->td_kstack_pages * in cpu_fork()
264 td2->td_pcb = pcb2; in cpu_fork()
317 td2->td_frame = tf; in cpu_fork()
320 fp->fr_local[1] = (u_long)td2; in cpu_fork()
328 td2->td_md.md_spinlock_count = 1; in cpu_fork()
329 td2->td_md.md_saved_pil = 0; in cpu_fork()
/NextBSD/lib/libc/tests/nss/
HDtestutil.h64 #define TEST_DATA_COMPARE(ent, td1, td2, fcmp, mdata)\ argument
65 __##ent##_test_data_compare(td1, td2, fcmp, mdata);
129 __##ent##_test_data_compare(struct ent##_test_data *td1, struct ent##_test_data *td2,\
136 ATF_REQUIRE(td2 != NULL); \
140 e2 = STAILQ_FIRST(&td2->snapshot_data); \
319 #define DO_2PASS_TEST(ent, td1, td2, f, mdata) \ argument
320 __##ent##_2pass_test(td1, td2, f, mdata)
325 struct ent##_test_data *td2, \
331 rv = __##ent##_test_data_compare(td1, td2, cmp_func, cmp_mdata); \
/NextBSD/sys/i386/linux/
HDlinux_ptrace.c342 struct thread *td2; in linux_ptrace() local
394 td2 = FIRST_THREAD_IN_PROC(p); in linux_ptrace()
395 error = linux_proc_read_fpxregs(td2, &r.fpxreg); in linux_ptrace()
405 td2 = FIRST_THREAD_IN_PROC(p); in linux_ptrace()
406 error = linux_proc_write_fpxregs(td2, &r.fpxreg); in linux_ptrace()
/NextBSD/sys/vm/
HDvm_glue.c617 vm_forkproc(td, p2, td2, vm2, flags) in vm_forkproc() argument
620 struct thread *td2;
640 cpu_fork(td, p2, td2, flags);
663 cpu_fork(td, p2, td2, flags);
/NextBSD/contrib/gcc/cp/
HDrtti.c590 tree result, td2, td3, elems; in build_dynamic_cast_1() local
631 td2 = get_tinfo_decl (target_type); in build_dynamic_cast_1()
632 mark_used (td2); in build_dynamic_cast_1()
633 td2 = build_unary_op (ADDR_EXPR, td2, 0); in build_dynamic_cast_1()
651 (NULL_TREE, td2, tree_cons in build_dynamic_cast_1()

12