Home
last modified time | relevance | path

Searched refs:p_numthreads (Results 1 – 18 of 18) sorted by relevance

/freebsd-head/sys/kern/
HDkern_thread.c512 p->p_numthreads = 0; in proc_linkup()
967 if (p->p_numthreads > 1) { in thread_exit()
979 if (p->p_numthreads == p->p_suspcount) { in thread_exit()
1045 KASSERT(p->p_numthreads == 1, ("multiple threads in thread_wait()")); in thread_wait()
1087 p->p_numthreads++; in thread_link()
1105 p->p_numthreads--; in thread_unlink()
1118 remaining = p->p_numthreads; in calc_remaining()
1120 remaining = p->p_numthreads - p->p_boundary_count; in calc_remaining()
1122 remaining = p->p_numthreads - p->p_suspcount; in calc_remaining()
1309 KASSERT(p->p_numthreads == 1, ("Unthreading with >1 threads")); in thread_single()
[all …]
HDkern_thr.c346 if (p->p_numthreads == p->p_pendingexits + 1) { in kern_thr_exit()
373 KASSERT(p->p_numthreads > 1, ("too few threads")); in kern_thr_exit()
617 if (p->p_numthreads >= max_threads_per_proc) { in kern_thr_alloc()
HDkern_exit.c197 MPASS(p->p_numthreads == 1); in exit_onexit()
300 KASSERT(p->p_numthreads == 1, in exit1()
301 ("exit1: proc %p exiting with %d threads", p, p->p_numthreads)); in exit1()
1350 p->p_suspcount == p->p_numthreads && in kern_wait6()
1368 report = (p->p_suspcount == p->p_numthreads && in kern_wait6()
HDsys_process.c820 p->p_suspcount != p->p_numthreads || in proc_can_ptrace()
1532 p->p_numthreads); in kern_ptrace()
1533 td->td_retval[0] = p->p_numthreads; in kern_ptrace()
1538 p->p_pid, data, p->p_numthreads); in kern_ptrace()
1543 num = imin(p->p_numthreads, data); in kern_ptrace()
HDsubr_trap.c104 if (p->p_numthreads == 1) { in userret()
HDkern_kthread.c381 if (p->p_numthreads == 1) { in kthread_exit()
HDkern_proc.c245 KASSERT((p->p_numthreads == 1), in proc_dtor()
1327 kp->ki_numthreads = p->p_numthreads; in fill_kinfo_thread()
1526 size += sizeof(struct kinfo_proc32) * p->p_numthreads; in kern_proc_out_size()
1529 size += sizeof(struct kinfo_proc) * p->p_numthreads; in kern_proc_out_size()
2133 if (pid == p->p_pid && p->p_numthreads == 1 && req->newptr == NULL && in sysctl_kern_proc_args()
2858 numthreads = p->p_numthreads; in sysctl_kern_proc_kstack()
2863 } while (numthreads < p->p_numthreads); in sysctl_kern_proc_kstack()
HDkern_sig.c297 if (p->p_numthreads == 1 && (tda & (TDAI(TDA_SIG) | in ast_sig()
1196 if (p->p_numthreads != 1) in kern_sigprocmask()
1463 if (p->p_numthreads != 1) in kern_sigtimedwait()
2462 if (p->p_numthreads == p->p_suspcount) { in tdsendsignal()
2545 if (p->p_numthreads == p->p_suspcount) { in tdsendsignal()
3042 if (p->p_numthreads == 1) in tdsigcleanup()
3418 if ((p->p_flag & P_STOPPED_SIG) && (n == p->p_numthreads)) { in thread_stopped()
4559 sigfastblock_resched(td, error == 0 && p->p_numthreads != 1); in sys_sigfastblock()
HDkern_fork.c957 if (p1->p_numthreads > 1) { in fork1()
HDkern_resource.c1288 if (p->p_numthreads > 0) { in rufetch()
HDkern_cpuset.c1277 needed = p->p_numthreads; in cpuset_setproc()
HDimgact_elf.c2491 size = sizeof(structsize) + p->p_numthreads * in __elfN()
/freebsd-head/cddl/lib/libdtrace/
HDpsinfo.d50 pr_nlwp = T->p_numthreads;
/freebsd-head/sys/ufs/ffs/
HDffs_suspend.c307 error = curproc->p_numthreads > 1 ? EDEADLK : in ffs_susp_ioctl()
/freebsd-head/sys/sys/
HDfiledesc.h194 (curproc->p_numthreads == 1 && refcount_load(&_fdp->fd_refcnt) == 1); \
HDproc.h750 int p_numthreads; /* (c) Number of threads. */ member
/freebsd-head/sys/ddb/
HDdb_ps.c495 db_printf(" threads: %d\n", p->p_numthreads); in DB_SHOW_COMMAND()
/freebsd-head/lib/libkvm/
HDkvm_proc.c214 kp->ki_numthreads = proc.p_numthreads; in kvm_proclist()