Lines Matching refs:autogroup

13 static struct autogroup autogroup_default;
21 init_task->signal->autogroup = &autogroup_default; in autogroup_init()
26 kfree(tg->autogroup); in autogroup_free()
31 struct autogroup *ag = container_of(kref, struct autogroup, kref); in autogroup_destroy()
42 static inline void autogroup_kref_put(struct autogroup *ag) in autogroup_kref_put()
47 static inline struct autogroup *autogroup_kref_get(struct autogroup *ag) in autogroup_kref_get()
53 static inline struct autogroup *autogroup_task_get(struct task_struct *p) in autogroup_task_get()
55 struct autogroup *ag; in autogroup_task_get()
61 ag = autogroup_kref_get(p->signal->autogroup); in autogroup_task_get()
67 static inline struct autogroup *autogroup_create(void) in autogroup_create()
69 struct autogroup *ag = kzalloc(sizeof(*ag), GFP_KERNEL); in autogroup_create()
96 tg->autogroup = ag; in autogroup_create()
128 autogroup_move_group(struct task_struct *p, struct autogroup *ag) in autogroup_move_group()
130 struct autogroup *prev; in autogroup_move_group()
136 prev = p->signal->autogroup; in autogroup_move_group()
142 p->signal->autogroup = autogroup_kref_get(ag); in autogroup_move_group()
157 struct autogroup *ag = autogroup_create(); in sched_autogroup_create_attach()
174 sig->autogroup = autogroup_task_get(current); in sched_autogroup_fork()
179 autogroup_kref_put(sig->autogroup); in sched_autogroup_exit()
196 struct autogroup *ag; in proc_sched_autogroup_set_nice()
229 struct autogroup *ag = autogroup_task_get(p); in proc_sched_autogroup_show_task()
249 return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); in autogroup_path()