Lines Matching refs:cgroup_path
52 static int enable_all_controllers(char *cgroup_path) in enable_all_controllers() argument
60 snprintf(path, sizeof(path), "%s/cgroup.controllers", cgroup_path); in enable_all_controllers()
80 snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path); in enable_all_controllers()
150 static int join_cgroup_from_top(const char *cgroup_path) in join_cgroup_from_top() argument
157 "%s/cgroup.procs", cgroup_path); in join_cgroup_from_top()
187 char cgroup_path[PATH_MAX + 1]; in join_cgroup() local
189 format_cgroup_path(cgroup_path, path); in join_cgroup()
190 return join_cgroup_from_top(cgroup_path); in join_cgroup()
227 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup() local
230 format_cgroup_path(cgroup_path, path); in create_and_get_cgroup()
231 if (mkdir(cgroup_path, 0777) && errno != EEXIST) { in create_and_get_cgroup()
232 log_err("mkdiring cgroup %s .. %s", path, cgroup_path); in create_and_get_cgroup()
236 fd = open(cgroup_path, O_RDONLY); in create_and_get_cgroup()