Commit 590ef703 authored by Yosry Ahmed's avatar Yosry Ahmed Committed by Liu Jian
Browse files

cgroup: add cgroup_v1v2_get_from_[fd/file]()

mainline inclusion
from mainline-v6.1-rc2
commit a6d1ce59
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I7DNAP
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a6d1ce5951185ee91bbe6909fe2758f3625561b0



--------------------------------

Add cgroup_v1v2_get_from_fd() and cgroup_v1v2_get_from_file() that
support both cgroup1 and cgroup2.

Signed-off-by: default avatarYosry Ahmed <yosryahmed@google.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarLiu Jian <liujian56@huawei.com>
parent 2f02096e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment