Lines Matching refs:autogroup
8 static struct autogroup autogroup_default;
38 init_task->signal->autogroup = &autogroup_default; in autogroup_init()
44 kfree(tg->autogroup); in autogroup_free()
49 struct autogroup *ag = container_of(kref, struct autogroup, kref); in autogroup_destroy()
60 static inline void autogroup_kref_put(struct autogroup *ag) in autogroup_kref_put()
65 static inline struct autogroup *autogroup_kref_get(struct autogroup *ag) in autogroup_kref_get()
71 static inline struct autogroup *autogroup_task_get(struct task_struct *p) in autogroup_task_get()
73 struct autogroup *ag; in autogroup_task_get()
79 ag = autogroup_kref_get(p->signal->autogroup); in autogroup_task_get()
85 static inline struct autogroup *autogroup_create(void) in autogroup_create()
87 struct autogroup *ag = kzalloc(sizeof(*ag), GFP_KERNEL); in autogroup_create()
113 tg->autogroup = ag; in autogroup_create()
158 autogroup_move_group(struct task_struct *p, struct autogroup *ag) in autogroup_move_group()
160 struct autogroup *prev; in autogroup_move_group()
167 prev = p->signal->autogroup; in autogroup_move_group()
173 p->signal->autogroup = autogroup_kref_get(ag); in autogroup_move_group()
195 struct autogroup *ag = autogroup_create(); in sched_autogroup_create_attach()
213 sig->autogroup = autogroup_task_get(current); in sched_autogroup_fork()
218 autogroup_kref_put(sig->autogroup); in sched_autogroup_exit()
234 struct autogroup *ag; in proc_sched_autogroup_set_nice()
271 struct autogroup *ag = autogroup_task_get(p); in proc_sched_autogroup_show_task()
290 return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); in autogroup_path()