Lines Matching refs:p_flag
92 _Static_assert(offsetof(struct proc, p_flag) == 0xb8,
112 _Static_assert(offsetof(struct proc, p_flag) == 0x6c,
964 if (p->p_flag & P_HADTHREADS) { in thread_exit()
1245 while ((p->p_flag & P_STOPPED_SINGLE) != 0) { in thread_single()
1248 msleep(&p->p_flag, &p->p_mtx, PCATCH, "thrsgl", 0); in thread_single()
1250 if ((p->p_flag & (P_STOPPED_SIG | P_TRACED)) != 0 || in thread_single()
1253 } else if ((p->p_flag & P_HADTHREADS) == 0) in thread_single()
1259 p->p_flag |= P_SINGLE_EXIT; in thread_single()
1260 p->p_flag &= ~P_SINGLE_BOUNDARY; in thread_single()
1262 p->p_flag &= ~P_SINGLE_EXIT; in thread_single()
1264 p->p_flag |= P_SINGLE_BOUNDARY; in thread_single()
1266 p->p_flag &= ~P_SINGLE_BOUNDARY; in thread_single()
1269 p->p_flag |= P_TOTAL_STOP; in thread_single()
1270 p->p_flag |= P_STOPPED_SINGLE; in thread_single()
1319 p->p_flag &= ~(P_STOPPED_SINGLE | P_SINGLE_EXIT | P_HADTHREADS); in thread_single()
1368 return (P_SHOULDSTOP(p) || ((p->p_flag & P_TRACED) != 0 && in thread_suspend_check_needed()
1429 if ((p->p_flag & P_SINGLE_EXIT) && return_instead) in thread_suspend_check()
1434 (p->p_flag & P_SINGLE_BOUNDARY) && return_instead) in thread_suspend_check()
1454 if ((p->p_flag & P_SINGLE_EXIT) && (p->p_singlethread != td)) { in thread_suspend_check()
1531 if (p->p_flag & P_SINGLE_EXIT) in thread_check_susp()
1534 ((p->p_flag & P_TRACED) && (td->td_dbgflags & TDB_SUSPEND))) in thread_check_susp()
1678 KASSERT((mode == SINGLE_ALLPROC && (p->p_flag & P_TOTAL_STOP) != 0) || in thread_single_end()
1679 (mode != SINGLE_ALLPROC && (p->p_flag & P_TOTAL_STOP) == 0), in thread_single_end()
1685 (p->p_flag & P_SINGLE_BOUNDARY) != 0, in thread_single_end()
1686 ("mis-matched SINGLE_BOUNDARY flags %x", p->p_flag)); in thread_single_end()
1687 p->p_flag &= ~(P_STOPPED_SINGLE | P_SINGLE_EXIT | P_SINGLE_BOUNDARY | in thread_single_end()
1713 wakeup(&p->p_flag); in thread_single_end()