Lines Matching refs:task_struct
67 struct task_struct *cur_task;
112 int cgroup_attach_task_all(struct task_struct *from, struct task_struct *);
121 int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen);
124 struct pid *pid, struct task_struct *tsk);
126 void cgroup_fork(struct task_struct *p);
127 extern int cgroup_can_fork(struct task_struct *p,
129 extern void cgroup_cancel_fork(struct task_struct *p,
131 extern void cgroup_post_fork(struct task_struct *p,
133 void cgroup_exit(struct task_struct *p);
134 void cgroup_release(struct task_struct *p);
135 void cgroup_free(struct task_struct *p);
154 struct task_struct *cgroup_taskset_first(struct cgroup_taskset *tset,
156 struct task_struct *cgroup_taskset_next(struct cgroup_taskset *tset,
161 struct task_struct *css_task_iter_next(struct css_task_iter *it);
422 static inline struct css_set *task_css_set(struct task_struct *task) in task_css_set()
434 static inline struct cgroup_subsys_state *task_css(struct task_struct *task, in task_css()
450 task_get_css(struct task_struct *task, int subsys_id) in task_get_css()
479 static inline bool task_css_is_root(struct task_struct *task, int subsys_id) in task_css_is_root()
485 static inline struct cgroup *task_cgroup(struct task_struct *task, in task_cgroup()
491 static inline struct cgroup *task_dfl_cgroup(struct task_struct *task) in task_dfl_cgroup()
550 static inline bool task_under_cgroup_hierarchy(struct task_struct *task, in task_under_cgroup_hierarchy()
648 static inline int cgroup_attach_task_all(struct task_struct *from, in cgroup_attach_task_all()
649 struct task_struct *t) { return 0; } in cgroup_attach_task_all()
653 static inline void cgroup_fork(struct task_struct *p) {} in cgroup_fork()
654 static inline int cgroup_can_fork(struct task_struct *p, in cgroup_can_fork()
656 static inline void cgroup_cancel_fork(struct task_struct *p, in cgroup_cancel_fork()
658 static inline void cgroup_post_fork(struct task_struct *p, in cgroup_post_fork()
660 static inline void cgroup_exit(struct task_struct *p) {} in cgroup_exit()
661 static inline void cgroup_release(struct task_struct *p) {} in cgroup_release()
662 static inline void cgroup_free(struct task_struct *p) {} in cgroup_free()
679 static inline bool task_under_cgroup_hierarchy(struct task_struct *task, in task_under_cgroup_hierarchy()
703 void cpuacct_charge(struct task_struct *tsk, u64 cputime);
704 void cpuacct_account_field(struct task_struct *tsk, int index, u64 val);
706 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge()
707 static inline void cpuacct_account_field(struct task_struct *tsk, int index, in cpuacct_account_field()
715 static inline void cgroup_account_cputime(struct task_struct *task, in cgroup_account_cputime()
727 static inline void cgroup_account_cputime_field(struct task_struct *task, in cgroup_account_cputime_field()
742 static inline void cgroup_account_cputime(struct task_struct *task, in cgroup_account_cputime()
744 static inline void cgroup_account_cputime_field(struct task_struct *task, in cgroup_account_cputime_field()
823 void cgroup_freezer_migrate_task(struct task_struct *task, struct cgroup *src,
826 static inline bool cgroup_task_frozen(struct task_struct *task) in cgroup_task_frozen()
835 static inline bool cgroup_task_frozen(struct task_struct *task) in cgroup_task_frozen()