• Home
  • Raw
  • Download

Lines Matching refs:p

49 static inline struct autogroup *autogroup_task_get(struct task_struct *p)  in autogroup_task_get()  argument
54 if (!lock_task_sighand(p, &flags)) in autogroup_task_get()
57 ag = autogroup_kref_get(p->signal->autogroup); in autogroup_task_get()
58 unlock_task_sighand(p, &flags); in autogroup_task_get()
107 bool task_wants_autogroup(struct task_struct *p, struct task_group *tg) in task_wants_autogroup() argument
119 if (p->flags & PF_EXITING) in task_wants_autogroup()
125 void sched_autogroup_exit_task(struct task_struct *p) in sched_autogroup_exit_task() argument
132 sched_move_task(p); in sched_autogroup_exit_task()
136 autogroup_move_group(struct task_struct *p, struct autogroup *ag) in autogroup_move_group() argument
142 BUG_ON(!lock_task_sighand(p, &flags)); in autogroup_move_group()
144 prev = p->signal->autogroup; in autogroup_move_group()
146 unlock_task_sighand(p, &flags); in autogroup_move_group()
150 p->signal->autogroup = autogroup_kref_get(ag); in autogroup_move_group()
162 for_each_thread(p, t) in autogroup_move_group()
165 unlock_task_sighand(p, &flags); in autogroup_move_group()
170 void sched_autogroup_create_attach(struct task_struct *p) in sched_autogroup_create_attach() argument
174 autogroup_move_group(p, ag); in sched_autogroup_create_attach()
182 void sched_autogroup_detach(struct task_struct *p) in sched_autogroup_detach() argument
184 autogroup_move_group(p, &autogroup_default); in sched_autogroup_detach()
208 int proc_sched_autogroup_set_nice(struct task_struct *p, int nice) in proc_sched_autogroup_set_nice() argument
230 ag = autogroup_task_get(p); in proc_sched_autogroup_set_nice()
246 void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m) in proc_sched_autogroup_show_task() argument
248 struct autogroup *ag = autogroup_task_get(p); in proc_sched_autogroup_show_task()