mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
cgroup: add cgroup_v1v2_get_from_[fd/file]()
Add cgroup_v1v2_get_from_fd() and cgroup_v1v2_get_from_file() that support both cgroup1 and cgroup2. Signed-off-by: Yosry Ahmed <yosryahmed@google.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
@@ -106,6 +106,7 @@ struct cgroup_subsys_state *css_tryget_online_from_dir(struct dentry *dentry,
|
||||
|
||||
struct cgroup *cgroup_get_from_path(const char *path);
|
||||
struct cgroup *cgroup_get_from_fd(int fd);
|
||||
struct cgroup *cgroup_v1v2_get_from_fd(int fd);
|
||||
|
||||
int cgroup_attach_task_all(struct task_struct *from, struct task_struct *);
|
||||
int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from);
|
||||
|
||||
Reference in New Issue
Block a user