Lines Matching refs:task
198 static inline struct cpuset *task_cs(struct task_struct *task) in task_cs() argument
200 return css_cs(task_css(task, cpuset_cgrp_id)); in task_cs()
913 struct task_struct *task; in update_tasks_root_domain() local
917 while ((task = css_task_iter_next(&it))) in update_tasks_root_domain()
918 dl_add_task_root_domain(task); in update_tasks_root_domain()
1036 struct task_struct *task; in update_tasks_cpumask() local
1039 while ((task = css_task_iter_next(&it))) in update_tasks_cpumask()
1040 set_cpus_allowed_ptr(task, cs->effective_cpus); in update_tasks_cpumask()
1649 struct task_struct *task; in update_tasks_nodemask() local
1666 while ((task = css_task_iter_next(&it))) { in update_tasks_nodemask()
1670 cpuset_change_task_nodemask(task, &newmems); in update_tasks_nodemask()
1672 mm = get_task_mm(task); in update_tasks_nodemask()
1855 struct task_struct *task; in update_tasks_flags() local
1858 while ((task = css_task_iter_next(&it))) in update_tasks_flags()
1859 cpuset_update_task_spread_flag(cs, task); in update_tasks_flags()
2109 struct task_struct *task; in cpuset_can_attach() local
2124 cgroup_taskset_for_each(task, css, tset) { in cpuset_can_attach()
2125 ret = task_can_attach(task, cs->cpus_allowed); in cpuset_can_attach()
2128 ret = security_task_setscheduler(task); in cpuset_can_attach()
2166 struct task_struct *task; in cpuset_attach() local
2185 cgroup_taskset_for_each(task, css, tset) { in cpuset_attach()
2190 WARN_ON_ONCE(set_cpus_allowed_ptr(task, cpus_attach)); in cpuset_attach()
2192 cpuset_change_task_nodemask(task, &cpuset_attach_nodemask_to); in cpuset_attach()
2193 cpuset_update_task_spread_flag(cs, task); in cpuset_attach()
2860 static void cpuset_fork(struct task_struct *task) in cpuset_fork() argument
2862 if (task_css_is_root(task, cpuset_cgrp_id)) in cpuset_fork()
2865 set_cpus_allowed_ptr(task, current->cpus_ptr); in cpuset_fork()
2866 task->mems_allowed = current->mems_allowed; in cpuset_fork()
3615 void cpuset_task_status_allowed(struct seq_file *m, struct task_struct *task) in cpuset_task_status_allowed() argument
3618 nodemask_pr_args(&task->mems_allowed)); in cpuset_task_status_allowed()
3620 nodemask_pr_args(&task->mems_allowed)); in cpuset_task_status_allowed()