Lines Matching refs:cgroup

100 struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgroup,
102 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgroup,
107 struct cgroup *cgroup_get_from_path(const char *path);
108 struct cgroup *cgroup_get_from_fd(int fd);
111 int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from);
310 static inline u64 cgroup_id(const struct cgroup *cgrp) in cgroup_id()
420 static inline void cgroup_get(struct cgroup *cgrp) in cgroup_get()
425 static inline bool cgroup_tryget(struct cgroup *cgrp) in cgroup_tryget()
430 static inline void cgroup_put(struct cgroup *cgrp) in cgroup_put()
542 static inline struct cgroup *task_cgroup(struct task_struct *task, in task_cgroup()
545 return task_css(task, subsys_id)->cgroup; in task_cgroup()
548 static inline struct cgroup *task_dfl_cgroup(struct task_struct *task) in task_dfl_cgroup()
553 static inline struct cgroup *cgroup_parent(struct cgroup *cgrp) in cgroup_parent()
558 return container_of(parent_css, struct cgroup, self); in cgroup_parent()
571 static inline bool cgroup_is_descendant(struct cgroup *cgrp, in cgroup_is_descendant()
572 struct cgroup *ancestor) in cgroup_is_descendant()
590 static inline struct cgroup *cgroup_ancestor(struct cgroup *cgrp, in cgroup_ancestor()
610 struct cgroup *ancestor) in task_under_cgroup_hierarchy()
618 static inline bool cgroup_is_populated(struct cgroup *cgrp) in cgroup_is_populated()
625 static inline ino_t cgroup_ino(struct cgroup *cgrp) in cgroup_ino()
654 static inline int cgroup_name(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_name()
659 static inline int cgroup_path(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_path()
664 static inline void pr_cont_cgroup_name(struct cgroup *cgrp) in pr_cont_cgroup_name()
669 static inline void pr_cont_cgroup_path(struct cgroup *cgrp) in pr_cont_cgroup_path()
674 static inline struct psi_group *cgroup_psi(struct cgroup *cgrp) in cgroup_psi()
701 struct cgroup *cgroup_get_from_id(u64 id);
705 struct cgroup;
707 static inline u64 cgroup_id(const struct cgroup *cgrp) { return 1; } in cgroup_id()
731 static inline struct cgroup *cgroup_parent(struct cgroup *cgrp) in cgroup_parent()
736 static inline struct psi_group *cgroup_psi(struct cgroup *cgrp) in cgroup_psi()
747 struct cgroup *ancestor) in task_under_cgroup_hierarchy()
755 static inline struct cgroup *cgroup_get_from_id(u64 id) in cgroup_get_from_id()
765 void cgroup_rstat_updated(struct cgroup *cgrp, int cpu);
766 void cgroup_rstat_flush(struct cgroup *cgrp);
767 void cgroup_rstat_flush_irqsafe(struct cgroup *cgrp);
768 void cgroup_rstat_flush_hold(struct cgroup *cgrp);
783 void __cgroup_account_cputime(struct cgroup *cgrp, u64 delta_exec);
784 void __cgroup_account_cputime_field(struct cgroup *cgrp,
790 struct cgroup *cgrp; in cgroup_account_cputime()
805 struct cgroup *cgrp; in cgroup_account_cputime_field()
836 static inline struct cgroup *sock_cgroup_ptr(struct sock_cgroup_data *skcd) in sock_cgroup_ptr()
838 return skcd->cgroup; in sock_cgroup_ptr()
866 int cgroup_path_ns(struct cgroup *cgrp, char *buf, size_t buflen,
897 void cgroup_update_frozen(struct cgroup *cgrp);
898 void cgroup_freeze(struct cgroup *cgrp, bool freeze);
899 void cgroup_freezer_migrate_task(struct task_struct *task, struct cgroup *src,
900 struct cgroup *dst);
919 static inline void cgroup_bpf_get(struct cgroup *cgrp) in cgroup_bpf_get()
924 static inline void cgroup_bpf_put(struct cgroup *cgrp) in cgroup_bpf_put()
931 static inline void cgroup_bpf_get(struct cgroup *cgrp) {} in cgroup_bpf_get()
932 static inline void cgroup_bpf_put(struct cgroup *cgrp) {} in cgroup_bpf_put()