Lines Matching refs:cgroup

96 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgroup,
101 struct cgroup *cgroup_get_from_path(const char *path);
102 struct cgroup *cgroup_get_from_fd(int fd);
105 int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from);
403 static inline void cgroup_get(struct cgroup *cgrp) in cgroup_get()
408 static inline bool cgroup_tryget(struct cgroup *cgrp) in cgroup_tryget()
413 static inline void cgroup_put(struct cgroup *cgrp) in cgroup_put()
519 static inline struct cgroup *task_cgroup(struct task_struct *task, in task_cgroup()
522 return task_css(task, subsys_id)->cgroup; in task_cgroup()
525 static inline struct cgroup *task_dfl_cgroup(struct task_struct *task) in task_dfl_cgroup()
530 static inline struct cgroup *cgroup_parent(struct cgroup *cgrp) in cgroup_parent()
535 return container_of(parent_css, struct cgroup, self); in cgroup_parent()
548 static inline bool cgroup_is_descendant(struct cgroup *cgrp, in cgroup_is_descendant()
549 struct cgroup *ancestor) in cgroup_is_descendant()
567 static inline struct cgroup *cgroup_ancestor(struct cgroup *cgrp, in cgroup_ancestor()
570 struct cgroup *ptr; in cgroup_ancestor()
596 struct cgroup *ancestor) in task_under_cgroup_hierarchy()
604 static inline bool cgroup_is_populated(struct cgroup *cgrp) in cgroup_is_populated()
611 static inline ino_t cgroup_ino(struct cgroup *cgrp) in cgroup_ino()
640 static inline int cgroup_name(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_name()
645 static inline int cgroup_path(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_path()
650 static inline void pr_cont_cgroup_name(struct cgroup *cgrp) in pr_cont_cgroup_name()
655 static inline void pr_cont_cgroup_path(struct cgroup *cgrp) in pr_cont_cgroup_path()
679 static inline union kernfs_node_id *cgroup_get_kernfs_id(struct cgroup *cgrp) in cgroup_get_kernfs_id()
689 struct cgroup;
708 static inline union kernfs_node_id *cgroup_get_kernfs_id(struct cgroup *cgrp) in cgroup_get_kernfs_id()
714 struct cgroup *ancestor) in task_under_cgroup_hierarchy()
727 void cgroup_rstat_updated(struct cgroup *cgrp, int cpu);
728 void cgroup_rstat_flush(struct cgroup *cgrp);
729 void cgroup_rstat_flush_irqsafe(struct cgroup *cgrp);
730 void cgroup_rstat_flush_hold(struct cgroup *cgrp);
745 void __cgroup_account_cputime(struct cgroup *cgrp, u64 delta_exec);
746 void __cgroup_account_cputime_field(struct cgroup *cgrp,
752 struct cgroup *cgrp; in cgroup_account_cputime()
767 struct cgroup *cgrp; in cgroup_account_cputime_field()
802 static inline struct cgroup *sock_cgroup_ptr(struct sock_cgroup_data *skcd) in sock_cgroup_ptr()
816 return (struct cgroup *)(unsigned long)v ?: &cgrp_dfl_root.cgrp; in sock_cgroup_ptr()
818 return (struct cgroup *)(unsigned long)skcd->val; in sock_cgroup_ptr()
847 int cgroup_path_ns(struct cgroup *cgrp, char *buf, size_t buflen,