Lines Matching refs:cgroup
103 struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgroup,
105 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgroup,
110 struct cgroup *cgroup_get_from_path(const char *path);
111 struct cgroup *cgroup_get_from_fd(int fd);
112 struct cgroup *cgroup_v1v2_get_from_fd(int fd);
115 int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from);
327 static inline u64 cgroup_id(const struct cgroup *cgrp) in cgroup_id()
352 static inline void cgroup_get(struct cgroup *cgrp) in cgroup_get()
357 static inline bool cgroup_tryget(struct cgroup *cgrp) in cgroup_tryget()
362 static inline void cgroup_put(struct cgroup *cgrp) in cgroup_put()
485 static inline struct cgroup *task_cgroup(struct task_struct *task, in task_cgroup()
488 return task_css(task, subsys_id)->cgroup; in task_cgroup()
491 static inline struct cgroup *task_dfl_cgroup(struct task_struct *task) in task_dfl_cgroup()
496 static inline struct cgroup *cgroup_parent(struct cgroup *cgrp) in cgroup_parent()
501 return container_of(parent_css, struct cgroup, self); in cgroup_parent()
514 static inline bool cgroup_is_descendant(struct cgroup *cgrp, in cgroup_is_descendant()
515 struct cgroup *ancestor) in cgroup_is_descendant()
533 static inline struct cgroup *cgroup_ancestor(struct cgroup *cgrp, in cgroup_ancestor()
551 struct cgroup *ancestor) in task_under_cgroup_hierarchy()
559 static inline bool cgroup_is_populated(struct cgroup *cgrp) in cgroup_is_populated()
566 static inline ino_t cgroup_ino(struct cgroup *cgrp) in cgroup_ino()
595 static inline int cgroup_name(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_name()
600 static inline int cgroup_path(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_path()
605 static inline void pr_cont_cgroup_name(struct cgroup *cgrp) in pr_cont_cgroup_name()
610 static inline void pr_cont_cgroup_path(struct cgroup *cgrp) in pr_cont_cgroup_path()
637 struct cgroup *cgroup_get_from_id(u64 id);
641 struct cgroup;
643 static inline u64 cgroup_id(const struct cgroup *cgrp) { return 1; } in cgroup_id()
669 static inline struct cgroup *cgroup_parent(struct cgroup *cgrp) in cgroup_parent()
680 struct cgroup *ancestor) in task_under_cgroup_hierarchy()
693 void cgroup_rstat_updated(struct cgroup *cgrp, int cpu);
694 void cgroup_rstat_flush(struct cgroup *cgrp);
695 void cgroup_rstat_flush_hold(struct cgroup *cgrp);
696 void cgroup_rstat_flush_release(struct cgroup *cgrp);
710 void __cgroup_account_cputime(struct cgroup *cgrp, u64 delta_exec);
711 void __cgroup_account_cputime_field(struct cgroup *cgrp,
717 struct cgroup *cgrp; in cgroup_account_cputime()
730 struct cgroup *cgrp; in cgroup_account_cputime_field()
759 static inline struct cgroup *sock_cgroup_ptr(struct sock_cgroup_data *skcd) in sock_cgroup_ptr()
761 return skcd->cgroup; in sock_cgroup_ptr()
789 int cgroup_path_ns(struct cgroup *cgrp, char *buf, size_t buflen,
820 void cgroup_update_frozen(struct cgroup *cgrp);
821 void cgroup_freeze(struct cgroup *cgrp, bool freeze);
822 void cgroup_freezer_migrate_task(struct task_struct *task, struct cgroup *src,
823 struct cgroup *dst);
842 static inline void cgroup_bpf_get(struct cgroup *cgrp) in cgroup_bpf_get()
847 static inline void cgroup_bpf_put(struct cgroup *cgrp) in cgroup_bpf_put()
854 static inline void cgroup_bpf_get(struct cgroup *cgrp) {} in cgroup_bpf_get()
855 static inline void cgroup_bpf_put(struct cgroup *cgrp) {} in cgroup_bpf_put()
859 struct cgroup *task_get_cgroup1(struct task_struct *tsk, int hierarchy_id);