Lines Matching defs:state

74  * Task state bitmask. NOTE! These bits are also

77 * We have two separate sets of flags: task->state
84 /* Used in tsk->state: */
94 /* Used in tsk->state again: */
118 #define task_is_traced(task) (((task)->state & __TASK_TRACED) != 0)
120 #define task_is_stopped(task) (((task)->state & __TASK_STOPPED) != 0)
122 #define task_is_stopped_or_traced(task) (((task)->state & (__TASK_STOPPED | __TASK_TRACED)) != 0)
130 #define is_special_task_state(state) ((state) & (__TASK_STOPPED | __TASK_TRACED | TASK_PARKED | TASK_DEAD))
136 current->state = (state_value); \
143 smp_store_mb(current->state, (state_value)); \
152 current->state = (state_value); \
157 * set_current_state() includes a barrier so that the write of current->state
180 * accessing p->state.
182 * Wakeup will do: if (@state & p->state) p->state = TASK_RUNNING, that is,
193 #define __set_current_state(state_value) current->state = (state_value)
195 #define set_current_state(state_value) smp_store_mb(current->state, (state_value))
201 * will not collide with our state change.
207 current->state = (state_value); \
317 enum vtime_state state;
758 volatile long state;
1184 /* VM state: */
1194 /* Ptrace state: */
1200 /* Pressure stall state */
1500 /* CPU-specific state of this task: */
1553 * Test if a process is not yet dead (at most zombie state)
1623 unsigned int tsk_state = READ_ONCE(tsk->state);
1624 unsigned int state = (tsk_state | tsk->exit_state) & TASK_REPORT;
1629 state = TASK_REPORT_IDLE;
1632 return fls(state);
1635 static inline char task_index_to_char(unsigned int state)
1641 return state_char[state];
1914 extern int wake_up_state(struct task_struct *tsk, unsigned int state);