Lines Matching defs:tsk
247 #define __set_task_state(tsk, state_value) \ argument
252 #define set_task_state(tsk, state_value) \ argument
282 #define __set_task_state(tsk, state_value) \ argument
284 #define set_task_state(tsk, state_value) \ argument
1731 #define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed) argument
1811 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr()
1816 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, in task_pid_nr_ns()
1822 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr()
1828 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr()
1835 static inline pid_t task_tgid_vnr(struct task_struct *tsk) in task_tgid_vnr()
1842 static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) in task_ppid_nr_ns()
1854 static inline pid_t task_ppid_nr(const struct task_struct *tsk) in task_ppid_nr()
1859 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, in task_pgrp_nr_ns()
1865 static inline pid_t task_pgrp_vnr(struct task_struct *tsk) in task_pgrp_vnr()
1871 static inline pid_t task_session_nr_ns(struct task_struct *tsk, in task_session_nr_ns()
1877 static inline pid_t task_session_vnr(struct task_struct *tsk) in task_session_vnr()
1883 static inline pid_t task_pgrp_nr(struct task_struct *tsk) in task_pgrp_nr()
1911 static inline int is_global_init(struct task_struct *tsk) in is_global_init()
1919 #define get_task_struct(tsk) do { atomic_inc(&(tsk)->usage); } while(0) argument
2362 static inline void kick_process(struct task_struct *tsk) { } in kick_process()
2374 static inline int dequeue_signal_lock(struct task_struct *tsk, sigset_t *mask, siginfo_t *info) in dequeue_signal_lock()
2518 static inline void set_task_comm(struct task_struct *tsk, const char *from) in set_task_comm()
2564 static inline int get_nr_threads(struct task_struct *tsk) in get_nr_threads()
2628 static inline struct sighand_struct *lock_task_sighand(struct task_struct *tsk, in lock_task_sighand()
2638 static inline void unlock_task_sighand(struct task_struct *tsk, in unlock_task_sighand()
2645 static inline void threadgroup_change_begin(struct task_struct *tsk) in threadgroup_change_begin()
2649 static inline void threadgroup_change_end(struct task_struct *tsk) in threadgroup_change_end()
2670 static inline void threadgroup_lock(struct task_struct *tsk) in threadgroup_lock()
2681 static inline void threadgroup_unlock(struct task_struct *tsk) in threadgroup_unlock()
2686 static inline void threadgroup_change_begin(struct task_struct *tsk) {} in threadgroup_change_begin()
2687 static inline void threadgroup_change_end(struct task_struct *tsk) {} in threadgroup_change_end()
2688 static inline void threadgroup_lock(struct task_struct *tsk) {} in threadgroup_lock()
2689 static inline void threadgroup_unlock(struct task_struct *tsk) {} in threadgroup_unlock()
2751 static inline void set_tsk_thread_flag(struct task_struct *tsk, int flag) in set_tsk_thread_flag()
2756 static inline void clear_tsk_thread_flag(struct task_struct *tsk, int flag) in clear_tsk_thread_flag()
2761 static inline int test_and_set_tsk_thread_flag(struct task_struct *tsk, int flag) in test_and_set_tsk_thread_flag()
2766 static inline int test_and_clear_tsk_thread_flag(struct task_struct *tsk, int flag) in test_and_clear_tsk_thread_flag()
2771 static inline int test_tsk_thread_flag(struct task_struct *tsk, int flag) in test_tsk_thread_flag()
2776 static inline void set_tsk_need_resched(struct task_struct *tsk) in set_tsk_need_resched()
2781 static inline void clear_tsk_need_resched(struct task_struct *tsk) in clear_tsk_need_resched()
2786 static inline int test_tsk_need_resched(struct task_struct *tsk) in test_tsk_need_resched()
3026 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) in add_rchar()
3031 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) in add_wchar()
3036 static inline void inc_syscr(struct task_struct *tsk) in inc_syscr()
3041 static inline void inc_syscw(struct task_struct *tsk) in inc_syscw()
3046 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) in add_rchar()
3050 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) in add_wchar()
3054 static inline void inc_syscr(struct task_struct *tsk) in inc_syscr()
3058 static inline void inc_syscw(struct task_struct *tsk) in inc_syscw()
3064 #define TASK_SIZE_OF(tsk) TASK_SIZE argument
3075 static inline unsigned long task_rlimit(const struct task_struct *tsk, in task_rlimit()
3081 static inline unsigned long task_rlimit_max(const struct task_struct *tsk, in task_rlimit_max()