Lines Matching refs:task_struct

13 struct task_struct;
56 extern struct task_struct init_task;
60 extern asmlinkage void schedule_tail(struct task_struct *prev);
61 extern void init_idle(struct task_struct *idle, int cpu);
63 extern int sched_fork(unsigned long clone_flags, struct task_struct *p);
64 extern void sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs);
65 extern void sched_post_fork(struct task_struct *p);
66 extern void sched_dead(struct task_struct *p);
76 extern void release_task(struct task_struct * p);
78 extern int copy_thread(struct task_struct *, const struct kernel_clone_args *);
83 extern void exit_thread(struct task_struct *tsk);
85 static inline void exit_thread(struct task_struct *tsk) in exit_thread()
91 extern void exit_files(struct task_struct *);
92 extern void exit_itimers(struct task_struct *);
95 struct task_struct *copy_process(struct pid *pid, int trace, int node,
97 struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node);
98 struct task_struct *fork_idle(int);
105 extern void free_task(struct task_struct *tsk);
114 static inline struct task_struct *get_task_struct(struct task_struct *t) in get_task_struct()
120 extern void __put_task_struct(struct task_struct *t);
123 static inline void put_task_struct(struct task_struct *t) in put_task_struct()
164 DEFINE_FREE(put_task, struct task_struct *, if (_T) put_task_struct(_T)) in DEFINE_FREE() argument
166 static inline void put_task_struct_many(struct task_struct *t, int nr) in DEFINE_FREE()
172 void put_task_struct_rcu_user(struct task_struct *task);
175 void release_thread(struct task_struct *dead_task);
180 # define arch_task_struct_size (sizeof(struct task_struct))
193 *size = arch_task_struct_size - offsetof(struct task_struct, thread); in arch_thread_struct_whitelist()
198 static inline struct vm_struct *task_stack_vm_area(const struct task_struct *t) in task_stack_vm_area()
203 static inline struct vm_struct *task_stack_vm_area(const struct task_struct *t) in task_stack_vm_area()
219 static inline void task_lock(struct task_struct *p) in task_lock()
224 static inline void task_unlock(struct task_struct *p) in task_unlock()