cgroup: add cgroup_v1v2_get_from_[fd/file]()
authorYosry Ahmed <yosryahmed@google.com>
Tue, 11 Oct 2022 00:33:58 +0000 (00:33 +0000)
committerTejun Heo <tj@kernel.org>
Tue, 11 Oct 2022 16:50:03 +0000 (06:50 -1000)
commita6d1ce5951185ee91bbe6909fe2758f3625561b0
tree450d6875a29897cf85154d2f4ca9dffc55753006
parent03db7716159477b595e9af01be8003b7e994cc79
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>
include/linux/cgroup.h
kernel/cgroup/cgroup.c