Lines Matching refs:task_struct

68 	struct task_struct		*cur_task;
115 int cgroup_attach_task_all(struct task_struct *from, struct task_struct *);
123 int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen);
126 struct pid *pid, struct task_struct *tsk);
128 void cgroup_fork(struct task_struct *p);
129 extern int cgroup_can_fork(struct task_struct *p,
131 extern void cgroup_cancel_fork(struct task_struct *p,
133 extern void cgroup_post_fork(struct task_struct *p,
135 void cgroup_exit(struct task_struct *p);
136 void cgroup_release(struct task_struct *p);
137 void cgroup_free(struct task_struct *p);
156 struct task_struct *cgroup_taskset_first(struct cgroup_taskset *tset,
158 struct task_struct *cgroup_taskset_next(struct cgroup_taskset *tset,
163 struct task_struct *css_task_iter_next(struct css_task_iter *it);
484 static inline struct css_set *task_css_set(struct task_struct *task) in task_css_set()
496 static inline struct cgroup_subsys_state *task_css(struct task_struct *task, in task_css()
512 task_get_css(struct task_struct *task, int subsys_id) in task_get_css()
541 static inline bool task_css_is_root(struct task_struct *task, int subsys_id) in task_css_is_root()
547 static inline struct cgroup *task_cgroup(struct task_struct *task, in task_cgroup()
553 static inline struct cgroup *task_dfl_cgroup(struct task_struct *task) in task_dfl_cgroup()
614 static inline bool task_under_cgroup_hierarchy(struct task_struct *task, in task_under_cgroup_hierarchy()
714 static inline int cgroup_attach_task_all(struct task_struct *from, in cgroup_attach_task_all()
715 struct task_struct *t) { return 0; } in cgroup_attach_task_all()
719 static inline void cgroup_fork(struct task_struct *p) {} in cgroup_fork()
720 static inline int cgroup_can_fork(struct task_struct *p, in cgroup_can_fork()
722 static inline void cgroup_cancel_fork(struct task_struct *p, in cgroup_cancel_fork()
724 static inline void cgroup_post_fork(struct task_struct *p, in cgroup_post_fork()
726 static inline void cgroup_exit(struct task_struct *p) {} in cgroup_exit()
727 static inline void cgroup_release(struct task_struct *p) {} in cgroup_release()
728 static inline void cgroup_free(struct task_struct *p) {} in cgroup_free()
750 static inline bool task_under_cgroup_hierarchy(struct task_struct *task, in task_under_cgroup_hierarchy()
774 void cpuacct_charge(struct task_struct *tsk, u64 cputime);
775 void cpuacct_account_field(struct task_struct *tsk, int index, u64 val);
777 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) {} in cpuacct_charge()
778 static inline void cpuacct_account_field(struct task_struct *tsk, int index, in cpuacct_account_field()
786 static inline void cgroup_account_cputime(struct task_struct *task, in cgroup_account_cputime()
800 static inline void cgroup_account_cputime_field(struct task_struct *task, in cgroup_account_cputime_field()
817 static inline void cgroup_account_cputime(struct task_struct *task, in cgroup_account_cputime()
819 static inline void cgroup_account_cputime_field(struct task_struct *task, in cgroup_account_cputime_field()
919 void cgroup_freezer_migrate_task(struct task_struct *task, struct cgroup *src,
922 static inline bool cgroup_task_freeze(struct task_struct *task) in cgroup_task_freeze()
936 static inline bool cgroup_task_frozen(struct task_struct *task) in cgroup_task_frozen()
945 static inline bool cgroup_task_freeze(struct task_struct *task) in cgroup_task_freeze()
949 static inline bool cgroup_task_frozen(struct task_struct *task) in cgroup_task_frozen()