Lines Matching refs:p
71 static inline struct autogroup *autogroup_task_get(struct task_struct *p) in autogroup_task_get() argument
76 if (!lock_task_sighand(p, &flags)) in autogroup_task_get()
79 ag = autogroup_kref_get(p->signal->autogroup); in autogroup_task_get()
80 unlock_task_sighand(p, &flags); in autogroup_task_get()
129 bool task_wants_autogroup(struct task_struct *p, struct task_group *tg) in task_wants_autogroup() argument
141 if (p->flags & PF_EXITING) in task_wants_autogroup()
147 void sched_autogroup_exit_task(struct task_struct *p) in sched_autogroup_exit_task() argument
154 sched_move_task(p); in sched_autogroup_exit_task()
158 autogroup_move_group(struct task_struct *p, struct autogroup *ag) in autogroup_move_group() argument
164 if (WARN_ON_ONCE(!lock_task_sighand(p, &flags))) in autogroup_move_group()
167 prev = p->signal->autogroup; in autogroup_move_group()
169 unlock_task_sighand(p, &flags); in autogroup_move_group()
173 p->signal->autogroup = autogroup_kref_get(ag); in autogroup_move_group()
185 for_each_thread(p, t) in autogroup_move_group()
188 unlock_task_sighand(p, &flags); in autogroup_move_group()
193 void sched_autogroup_create_attach(struct task_struct *p) in sched_autogroup_create_attach() argument
197 autogroup_move_group(p, ag); in sched_autogroup_create_attach()
205 void sched_autogroup_detach(struct task_struct *p) in sched_autogroup_detach() argument
207 autogroup_move_group(p, &autogroup_default); in sched_autogroup_detach()
231 int proc_sched_autogroup_set_nice(struct task_struct *p, int nice) in proc_sched_autogroup_set_nice() argument
253 ag = autogroup_task_get(p); in proc_sched_autogroup_set_nice()
269 void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m) in proc_sched_autogroup_show_task() argument
271 struct autogroup *ag = autogroup_task_get(p); in proc_sched_autogroup_show_task()