In preparation for adding support for cgroup v2, this
commit moves some cgroup v1 mount logic out of
cgroup_init() and into its own function.
Signed-off-by: Tom Hromatka
---
src/api.c | 218 +-
1 file changed, 117 insertions(+), 101 del
This commit adds cgroup v2 support to cgget, cgset, and
cgroup_init().
Signed-off-by: Tom Hromatka
---
src/api.c| 134 +--
src/libcgroup-internal.h | 6 +++
2 files changed, 125 insertions(+), 15 deletions(-)
diff --git a/src/api.c b
This patchset adds cgroup v2 support to cgget and cgset.
It may also add cgroup v2 support for other commands, but
I haven't extensively tested them yet.
Tom Hromatka (2):
api: Refactor cgroup v1 logic in cgroup_init()
api: Add cgroup v2 support
src/api.c| 350 +++