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,
126 extern void cgroup_cancel_fork(struct task_struct *p,
128 extern void cgroup_post_fork(struct task_struct *p,
130 void cgroup_exit(struct task_struct *p);
131 void cgroup_release(struct task_struct *p);
132 void cgroup_free(struct task_struct *p);
151 struct task_struct *cgroup_taskset_first(struct cgroup_taskset *tset,
153 struct task_struct *cgroup_taskset_next(struct cgroup_taskset *tset,
158 struct task_struct *css_task_iter_next(struct css_task_iter *it);
479 static inline struct css_set *task_css_set(struct task_struct *task) in task_css_set()
491 static inline struct cgroup_subsys_state *task_css(struct task_struct *task, in task_css()
507 task_get_css(struct task_struct *task, int subsys_id) in task_get_css()
536 static inline bool task_css_is_root(struct task_struct *task, int subsys_id) in task_css_is_root()
542 static inline struct cgroup *task_cgroup(struct task_struct *task, in task_cgroup()
548 static inline struct cgroup *task_dfl_cgroup(struct task_struct *task) in task_dfl_cgroup()
609 static inline bool task_under_cgroup_hierarchy(struct task_struct *task, in task_under_cgroup_hierarchy()
707 static inline int cgroup_attach_task_all(struct task_struct *from, in cgroup_attach_task_all()
708 struct task_struct *t) { return 0; } in cgroup_attach_task_all()
712 static inline void cgroup_fork(struct task_struct *p) {} in cgroup_fork()
713 static inline int cgroup_can_fork(struct task_struct *p, in cgroup_can_fork()
715 static inline void cgroup_cancel_fork(struct task_struct *p, in cgroup_cancel_fork()
717 static inline void cgroup_post_fork(struct task_struct *p, in cgroup_post_fork()
719 static inline void cgroup_exit(struct task_struct *p) {} in cgroup_exit()
720 static inline void cgroup_release(struct task_struct *p) {} in cgroup_release()
721 static inline void cgroup_free(struct task_struct *p) {} in cgroup_free()
738 static inline bool task_under_cgroup_hierarchy(struct task_struct *task, in task_under_cgroup_hierarchy()
762 void cpuacct_charge(struct task_struct *tsk, u64 cputime);
763 void cpuacct_account_field(struct task_struct *tsk, int index, u64 val);
765 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge()
766 static inline void cpuacct_account_field(struct task_struct *tsk, int index, in cpuacct_account_field()
774 static inline void cgroup_account_cputime(struct task_struct *task, in cgroup_account_cputime()
788 static inline void cgroup_account_cputime_field(struct task_struct *task, in cgroup_account_cputime_field()
805 static inline void cgroup_account_cputime(struct task_struct *task, in cgroup_account_cputime()
807 static inline void cgroup_account_cputime_field(struct task_struct *task, in cgroup_account_cputime_field()
907 void cgroup_freezer_migrate_task(struct task_struct *task, struct cgroup *src,
910 static inline bool cgroup_task_freeze(struct task_struct *task) in cgroup_task_freeze()
924 static inline bool cgroup_task_frozen(struct task_struct *task) in cgroup_task_frozen()
933 static inline bool cgroup_task_freeze(struct task_struct *task) in cgroup_task_freeze()
937 static inline bool cgroup_task_frozen(struct task_struct *task) in cgroup_task_frozen()