Lines Matching refs:autogroup

9 static struct autogroup autogroup_default;
17 init_task->signal->autogroup = &autogroup_default; in autogroup_init()
22 kfree(tg->autogroup); in autogroup_free()
27 struct autogroup *ag = container_of(kref, struct autogroup, kref); in autogroup_destroy()
38 static inline void autogroup_kref_put(struct autogroup *ag) in autogroup_kref_put()
43 static inline struct autogroup *autogroup_kref_get(struct autogroup *ag) in autogroup_kref_get()
49 static inline struct autogroup *autogroup_task_get(struct task_struct *p) in autogroup_task_get()
51 struct autogroup *ag; in autogroup_task_get()
57 ag = autogroup_kref_get(p->signal->autogroup); in autogroup_task_get()
63 static inline struct autogroup *autogroup_create(void) in autogroup_create()
65 struct autogroup *ag = kzalloc(sizeof(*ag), GFP_KERNEL); in autogroup_create()
91 tg->autogroup = ag; in autogroup_create()
136 autogroup_move_group(struct task_struct *p, struct autogroup *ag) in autogroup_move_group()
138 struct autogroup *prev; in autogroup_move_group()
144 prev = p->signal->autogroup; in autogroup_move_group()
150 p->signal->autogroup = autogroup_kref_get(ag); in autogroup_move_group()
172 struct autogroup *ag = autogroup_create(); in sched_autogroup_create_attach()
190 sig->autogroup = autogroup_task_get(current); in sched_autogroup_fork()
195 autogroup_kref_put(sig->autogroup); in sched_autogroup_exit()
211 struct autogroup *ag; in proc_sched_autogroup_set_nice()
248 struct autogroup *ag = autogroup_task_get(p); in proc_sched_autogroup_show_task()
267 return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); in autogroup_path()