Rename cgroup_v1_build_procs_path() to cgroup_build_tid_path(), this
function will be used to build a procs path on both cgroup v1/v2 to
which the tid/pid will be written based on the cgroup type. Change
the name to reflect the new functionality.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
return ret;
}
-static int cgroup_v1_build_procs_path(const char * const ctrl_name, char *path)
+static int cgroup_build_tid_path(const char * const ctrl_name, char *path)
{
enum cg_version_t version;
size_t len;
return ret;
if (move_tids) {
- ret = cgroup_v1_build_procs_path(controller_name, path);
+ ret = cgroup_build_tid_path(controller_name, path);
if (ret)
return ret;
}
return ret;
if (move_tids) {
- ret = cgroup_v1_build_procs_path(controller_name, path);
+ ret = cgroup_build_tid_path(controller_name, path);
if (ret)
return ret;
}