Remove the static qualifier from cgroup_test_subsys_mounted(). As
part of the cgget refactor, cgget will utilize this function.
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
return base;
}
-static int cgroup_test_subsys_mounted(const char *name)
+int cgroup_test_subsys_mounted(const char *name)
{
int i;
int cgroup_fill_cgc(struct dirent *ctrl_dir, struct cgroup *cgroup,
struct cgroup_controller *cgc, int cg_index);
+/**
+ * Given a controller name, test if it's mounted
+ *
+ * @param ctrl_name Controller name
+ * @return 1 if mounted, 0 if not mounted
+ */
+int cgroup_test_subsys_mounted(const char *ctrl_name);
+
/**
* Functions that are defined as STATIC can be placed within the UNIT_TEST
* ifdef. This will allow them to be included in the unit tests while
cgroup_build_tasks_procs_path;
cg_build_path_locked;
cgroup_fill_cgc;
+ cgroup_test_subsys_mounted;
} CGROUP_0.42;