Lines Matching refs:state

151 		thread_lock(t);		/* make sure thread is in good state */
154 panic("prchoose: bad thread state %d, thread 0x%p",
745 * Return ENOENT if process entered zombie state or is exiting
2502 char c, state;
2516 /* map the thread state enum into a process state enum */
2517 state = VSTOPPED(t) ? TS_STOPPED : t->t_state;
2518 switch (state) {
2519 case TS_SLEEP: state = SSLEEP; c = 'S'; break;
2520 case TS_RUN: state = SRUN; c = 'R'; break;
2521 case TS_ONPROC: state = SONPROC; c = 'O'; break;
2522 case TS_ZOMB: state = SZOMB; c = 'Z'; break;
2523 case TS_STOPPED: state = SSTOP; c = 'T'; break;
2524 case TS_WAIT: state = SWAIT; c = 'W'; break;
2525 default: state = 0; c = '?'; break;
2527 psp->pr_state = state;
2569 char c, state;
2583 /* map the thread state enum into a process state enum */
2584 state = VSTOPPED(t) ? TS_STOPPED : t->t_state;
2585 switch (state) {
2586 case TS_SLEEP: state = SSLEEP; c = 'S'; break;
2587 case TS_RUN: state = SRUN; c = 'R'; break;
2588 case TS_ONPROC: state = SONPROC; c = 'O'; break;
2589 case TS_ZOMB: state = SZOMB; c = 'Z'; break;
2590 case TS_STOPPED: state = SSTOP; c = 'T'; break;
2591 case TS_WAIT: state = SWAIT; c = 'W'; break;
2592 default: state = 0; c = '?'; break;
2594 psp->pr_state = state;
2801 int state;
2860 switch (state = t->t_mstate) {
2863 * Update the timer for the current sleep state.
2865 switch (state = ms->ms_prev) {
2872 state = LMS_SLEEP;
2880 state = LMS_SYSTEM;
2883 switch (state) {
2956 int state;
3022 switch (state = t->t_mstate) {
3025 * Update the timer for the current sleep state.
3027 switch (state = ms->ms_prev) {
3034 state = LMS_SLEEP;
3042 state = LMS_SYSTEM;
3045 switch (state) {