Lines Matching refs:p_flag

93 _Static_assert(offsetof(struct proc, p_flag) == 0xb8,
113 _Static_assert(offsetof(struct proc, p_flag) == 0x6c,
966 if (p->p_flag & P_HADTHREADS) { in thread_exit()
1240 while ((p->p_flag & P_STOPPED_SINGLE) != 0) { in thread_single()
1243 msleep(&p->p_flag, &p->p_mtx, PCATCH, "thrsgl", 0); in thread_single()
1245 if ((p->p_flag & (P_STOPPED_SIG | P_TRACED)) != 0 || in thread_single()
1248 } else if ((p->p_flag & P_HADTHREADS) == 0) in thread_single()
1254 p->p_flag |= P_SINGLE_EXIT; in thread_single()
1255 p->p_flag &= ~P_SINGLE_BOUNDARY; in thread_single()
1257 p->p_flag &= ~P_SINGLE_EXIT; in thread_single()
1259 p->p_flag |= P_SINGLE_BOUNDARY; in thread_single()
1261 p->p_flag &= ~P_SINGLE_BOUNDARY; in thread_single()
1264 p->p_flag |= P_TOTAL_STOP; in thread_single()
1265 p->p_flag |= P_STOPPED_SINGLE; in thread_single()
1311 p->p_flag &= ~(P_STOPPED_SINGLE | P_SINGLE_EXIT | P_HADTHREADS); in thread_single()
1360 return (P_SHOULDSTOP(p) || ((p->p_flag & P_TRACED) != 0 && in thread_suspend_check_needed()
1420 if ((p->p_flag & P_SINGLE_EXIT) && return_instead) in thread_suspend_check()
1425 (p->p_flag & P_SINGLE_BOUNDARY) && return_instead) in thread_suspend_check()
1445 if ((p->p_flag & P_SINGLE_EXIT) && (p->p_singlethread != td)) { in thread_suspend_check()
1520 if (p->p_flag & P_SINGLE_EXIT) in thread_check_susp()
1523 ((p->p_flag & P_TRACED) && (td->td_dbgflags & TDB_SUSPEND))) in thread_check_susp()
1659 KASSERT((mode == SINGLE_ALLPROC && (p->p_flag & P_TOTAL_STOP) != 0) || in thread_single_end()
1660 (mode != SINGLE_ALLPROC && (p->p_flag & P_TOTAL_STOP) == 0), in thread_single_end()
1666 (p->p_flag & P_SINGLE_BOUNDARY) != 0, in thread_single_end()
1667 ("mis-matched SINGLE_BOUNDARY flags %x", p->p_flag)); in thread_single_end()
1668 p->p_flag &= ~(P_STOPPED_SINGLE | P_SINGLE_EXIT | P_SINGLE_BOUNDARY | in thread_single_end()
1691 wakeup(&p->p_flag); in thread_single_end()