Lines Matching refs:task
56 static inline struct freezer *task_freezer(struct task_struct *task) in task_freezer() argument
58 return css_freezer(task_css(task, freezer_cgrp_id)); in task_freezer()
66 bool cgroup_freezing(struct task_struct *task) in cgroup_freezing() argument
76 state = task_freezer(task)->state; in cgroup_freezing()
171 struct task_struct *task; in freezer_attach() local
186 cgroup_taskset_for_each(task, new_css, tset) { in freezer_attach()
190 __thaw_task(task); in freezer_attach()
192 freeze_task(task); in freezer_attach()
215 static void freezer_fork(struct task_struct *task) in freezer_fork() argument
226 if (task_css_is_root(task, freezer_cgrp_id)) in freezer_fork()
232 freezer = task_freezer(task); in freezer_fork()
234 freeze_task(task); in freezer_fork()
261 struct task_struct *task; in update_if_frozen() local
285 while ((task = css_task_iter_next(&it))) { in update_if_frozen()
286 if (freezing(task) && !frozen(task)) in update_if_frozen()
325 struct task_struct *task; in freeze_cgroup() local
328 while ((task = css_task_iter_next(&it))) in freeze_cgroup()
329 freeze_task(task); in freeze_cgroup()
336 struct task_struct *task; in unfreeze_cgroup() local
339 while ((task = css_task_iter_next(&it))) in unfreeze_cgroup()
340 __thaw_task(task); in unfreeze_cgroup()