/* Call with cg_mount_table_lock taken */
/* path value have to have size at least FILENAME_MAX */
-static char *cg_build_path_locked(const char *name, char *path,
- const char *type)
+char *cg_build_path_locked(const char *name, char *path,
+ const char *type)
{
int i;
for (i = 0; cg_mount_table[i].name[0] != '\0'; i++) {
size_t path_sz, const char * const cg_name,
const char * const ctrl_name);
+/**
+ * Build the full path to the controller/setting
+ *
+ * @param setting Cgroup virtual filename/setting (optional)
+ * @param path Output variable to contain the concatenated path
+ * @param controller Cgroup controller name
+ *
+ * @return If successful, a valid pointer to the concatenated path
+ *
+ * @note The cg_mount_table_lock must be held prior to calling this function
+ */
+char *cg_build_path_locked(const char *setting, char *path,
+ const char *controller);
+
/**
* 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