]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
api: export cgroup_setup_mode()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 24 Apr 2023 07:00:51 +0000 (07:00 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 26 Apr 2023 19:25:25 +0000 (13:25 -0600)
export cgroup_setup_mode(), the function will be helpful for the
developers to take decisions/actions based on the cgroup setup mode the
system is booted with.

Suggested-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/libcgroup.map

index b0f0356ae86eab60a72b76134ded91c023bfadb2..6e564d3867704c59bf08bfeb68606bd28dcf698f 100644 (file)
@@ -157,4 +157,5 @@ CGROUP_3.0 {
        cgroup_create_scope2;
        cgroup_set_default_systemd_cgroup;
        cgroup_write_systemd_default_cgroup;
+       cgroup_setup_mode;
 } CGROUP_2.0;