Lines Matching refs:task_struct

67 	struct task_struct		*cur_task;
110 int cgroup_attach_task_all(struct task_struct *from, struct task_struct *);
118 int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen);
121 struct pid *pid, struct task_struct *tsk);
123 void cgroup_fork(struct task_struct *p);
124 extern int cgroup_can_fork(struct task_struct *p);
125 extern void cgroup_cancel_fork(struct task_struct *p);
126 extern void cgroup_post_fork(struct task_struct *p);
127 void cgroup_exit(struct task_struct *p);
128 void cgroup_release(struct task_struct *p);
129 void cgroup_free(struct task_struct *p);
148 struct task_struct *cgroup_taskset_first(struct cgroup_taskset *tset,
150 struct task_struct *cgroup_taskset_next(struct cgroup_taskset *tset,
156 struct task_struct *css_task_iter_next(struct css_task_iter *it);
472 static inline struct css_set *task_css_set(struct task_struct *task) in task_css_set()
484 static inline struct cgroup_subsys_state *task_css(struct task_struct *task, in task_css()
500 task_get_css(struct task_struct *task, int subsys_id) in task_get_css()
529 static inline bool task_css_is_root(struct task_struct *task, int subsys_id) in task_css_is_root()
535 static inline struct cgroup *task_cgroup(struct task_struct *task, in task_cgroup()
541 static inline struct cgroup *task_dfl_cgroup(struct task_struct *task) in task_dfl_cgroup()
602 static inline bool task_under_cgroup_hierarchy(struct task_struct *task, in task_under_cgroup_hierarchy()
705 static inline int cgroup_attach_task_all(struct task_struct *from, in cgroup_attach_task_all()
706 struct task_struct *t) { return 0; } in cgroup_attach_task_all()
710 static inline void cgroup_fork(struct task_struct *p) {} in cgroup_fork()
711 static inline int cgroup_can_fork(struct task_struct *p) { return 0; } in cgroup_can_fork()
712 static inline void cgroup_cancel_fork(struct task_struct *p) {} in cgroup_cancel_fork()
713 static inline void cgroup_post_fork(struct task_struct *p) {} in cgroup_post_fork()
714 static inline void cgroup_exit(struct task_struct *p) {} in cgroup_exit()
715 static inline void cgroup_release(struct task_struct *p) {} in cgroup_release()
716 static inline void cgroup_free(struct task_struct *p) {} in cgroup_free()
737 static inline bool task_under_cgroup_hierarchy(struct task_struct *task, in task_under_cgroup_hierarchy()
761 void cpuacct_charge(struct task_struct *tsk, u64 cputime);
762 void cpuacct_account_field(struct task_struct *tsk, int index, u64 val);
764 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge()
765 static inline void cpuacct_account_field(struct task_struct *tsk, int index, in cpuacct_account_field()
773 static inline void cgroup_account_cputime(struct task_struct *task, in cgroup_account_cputime()
787 static inline void cgroup_account_cputime_field(struct task_struct *task, in cgroup_account_cputime_field()
804 static inline void cgroup_account_cputime(struct task_struct *task, in cgroup_account_cputime()
806 static inline void cgroup_account_cputime_field(struct task_struct *task, in cgroup_account_cputime_field()
904 void cgroup_freezer_migrate_task(struct task_struct *task, struct cgroup *src,
907 static inline bool cgroup_task_freeze(struct task_struct *task) in cgroup_task_freeze()
921 static inline bool cgroup_task_frozen(struct task_struct *task) in cgroup_task_frozen()
930 static inline bool cgroup_task_freeze(struct task_struct *task) in cgroup_task_freeze()
934 static inline bool cgroup_task_frozen(struct task_struct *task) in cgroup_task_frozen()