Lines Matching refs:task_group

470 struct task_group {  struct
504 struct task_group *parent; argument
540 typedef int (*tg_visitor)(struct task_group *, void *); argument
542 extern int walk_tg_tree_from(struct task_group *from,
556 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg()
558 return css ? container_of(css, struct task_group, css) : NULL; in css_tg()
561 extern int tg_nop(struct task_group *tg, void *data);
564 extern void free_fair_sched_group(struct task_group *tg);
565 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent);
566 extern void online_fair_sched_group(struct task_group *tg);
567 extern void unregister_fair_sched_group(struct task_group *tg);
569 static inline void free_fair_sched_group(struct task_group *tg) { } in free_fair_sched_group()
570 static inline int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent) in alloc_fair_sched_group()
574 static inline void online_fair_sched_group(struct task_group *tg) { } in online_fair_sched_group()
575 static inline void unregister_fair_sched_group(struct task_group *tg) { } in unregister_fair_sched_group()
578 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq,
588 extern void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq,
591 extern int sched_group_set_rt_runtime(struct task_group *tg, long rt_runtime_us);
592 extern int sched_group_set_rt_period(struct task_group *tg, u64 rt_period_us);
593 extern long sched_group_rt_runtime(struct task_group *tg);
594 extern long sched_group_rt_period(struct task_group *tg);
595 extern int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk);
597 extern struct task_group *sched_create_group(struct task_group *parent);
598 extern void sched_online_group(struct task_group *tg,
599 struct task_group *parent);
600 extern void sched_destroy_group(struct task_group *tg);
601 extern void sched_release_group(struct task_group *tg);
606 extern int sched_group_set_shares(struct task_group *tg, unsigned long shares);
608 extern int sched_group_set_idle(struct task_group *tg, long idle);
613 static inline int sched_group_set_shares(struct task_group *tg, unsigned long shares) { return 0; } in sched_group_set_shares()
614 static inline int sched_group_set_idle(struct task_group *tg, long idle) { return 0; } in sched_group_set_idle()
625 extern void unregister_rt_sched_group(struct task_group *tg);
626 extern void free_rt_sched_group(struct task_group *tg);
627 extern int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent);
744 struct task_group *tg; /* group that "owns" this runqueue */
851 struct task_group *tg; /* this tg has "this" rt_rq on given CPU for runnable entities */
2173 static inline struct task_group *task_group(struct task_struct *p) in task_group() function
2182 struct task_group *tg = task_group(p); in set_task_rq()
2209 static inline struct task_group *task_group(struct task_struct *p) in task_group() function