Home | History | Annotate | Download | only in linux

Lines Matching defs:tsk

146 /* in tsk->exit_state */
149 /* in tsk->state again */
152 #define __set_task_state(tsk, state_value) \
153 do { (tsk)->state = (state_value); } while (0)
154 #define set_task_state(tsk, state_value) \
155 set_mb((tsk)->state, (state_value))
410 struct task_struct *tsk;
1001 static inline pid_t process_group(struct task_struct *tsk)
1003 return tsk->signal->pgrp;
1019 extern void free_task(struct task_struct *tsk);
1020 #define get_task_struct(tsk) do { atomic_inc(&(tsk)->usage); } while(0)
1061 * Only the _current_ task can read/write to tsk->flags, but other
1062 * tasks can access tsk->flags in readonly mode for example
1184 extern int FASTCALL(wake_up_state(struct task_struct * tsk, unsigned int state));
1185 extern int FASTCALL(wake_up_process(struct task_struct * tsk));
1186 extern void FASTCALL(wake_up_new_task(struct task_struct * tsk,
1189 extern void kick_process(struct task_struct *tsk);
1191 static inline void kick_process(struct task_struct *tsk) { }
1202 extern int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info);
1204 static inline int dequeue_signal_lock(struct task_struct *tsk, sigset_t *mask, siginfo_t *info)
1209 spin_lock_irqsave(&tsk->sighand->siglock, flags);
1210 ret = dequeue_signal(tsk, mask, info);
1211 spin_unlock_irqrestore(&tsk->sighand->siglock, flags);
1305 extern void set_task_comm(struct task_struct *tsk, char *from);
1306 extern void get_task_comm(char *to, struct task_struct *tsk);
1368 extern struct sighand_struct *lock_task_sighand(struct task_struct *tsk,
1371 static inline void unlock_task_sighand(struct task_struct *tsk,
1374 spin_unlock_irqrestore(&tsk->sighand->siglock, *flags);
1398 static inline void set_tsk_thread_flag(struct task_struct *tsk, int flag)
1400 set_ti_thread_flag(task_thread_info(tsk), flag);
1403 static inline void clear_tsk_thread_flag(struct task_struct *tsk, int flag)
1405 clear_ti_thread_flag(task_thread_info(tsk), flag);
1408 static inline int test_and_set_tsk_thread_flag(struct task_struct *tsk, int flag)
1410 return test_and_set_ti_thread_flag(task_thread_info(tsk), flag);
1413 static inline int test_and_clear_tsk_thread_flag(struct task_struct *tsk, int flag)
1415 return test_and_clear_ti_thread_flag(task_thread_info(tsk), flag);
1418 static inline int test_tsk_thread_flag(struct task_struct *tsk, int flag)
1420 return test_ti_thread_flag(task_thread_info(tsk), flag);
1423 static inline void set_tsk_need_resched(struct task_struct *tsk)
1425 set_tsk_thread_flag(tsk,TIF_NEED_RESCHED);
1428 static inline void clear_tsk_need_resched(struct task_struct *tsk)
1430 clear_tsk_thread_flag(tsk,TIF_NEED_RESCHED);