Lines Matching refs:autogroup

11 static struct autogroup autogroup_default;
19 init_task->signal->autogroup = &autogroup_default; in autogroup_init()
24 kfree(tg->autogroup); in autogroup_free()
29 struct autogroup *ag = container_of(kref, struct autogroup, kref); in autogroup_destroy()
40 static inline void autogroup_kref_put(struct autogroup *ag) in autogroup_kref_put()
45 static inline struct autogroup *autogroup_kref_get(struct autogroup *ag) in autogroup_kref_get()
51 static inline struct autogroup *autogroup_task_get(struct task_struct *p) in autogroup_task_get()
53 struct autogroup *ag; in autogroup_task_get()
59 ag = autogroup_kref_get(p->signal->autogroup); in autogroup_task_get()
65 static inline struct autogroup *autogroup_create(void) in autogroup_create()
67 struct autogroup *ag = kzalloc(sizeof(*ag), GFP_KERNEL); in autogroup_create()
94 tg->autogroup = ag; in autogroup_create()
126 autogroup_move_group(struct task_struct *p, struct autogroup *ag) in autogroup_move_group()
128 struct autogroup *prev; in autogroup_move_group()
134 prev = p->signal->autogroup; in autogroup_move_group()
140 p->signal->autogroup = autogroup_kref_get(ag); in autogroup_move_group()
155 struct autogroup *ag = autogroup_create(); in sched_autogroup_create_attach()
172 sig->autogroup = autogroup_task_get(current); in sched_autogroup_fork()
177 autogroup_kref_put(sig->autogroup); in sched_autogroup_exit()
194 struct autogroup *ag; in proc_sched_autogroup_set_nice()
227 struct autogroup *ag = autogroup_task_get(p); in proc_sched_autogroup_show_task()
247 return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); in autogroup_path()