Lines Matching refs:cgroup_path

52 static int __enable_controllers(const char *cgroup_path, const char *controllers)  in __enable_controllers()  argument
63 cgroup_path); in __enable_controllers()
84 snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path); in __enable_controllers()
115 char cgroup_path[PATH_MAX + 1]; in enable_controllers() local
117 format_cgroup_path(cgroup_path, relative_path); in enable_controllers()
118 return __enable_controllers(cgroup_path, controllers); in enable_controllers()
121 static int __write_cgroup_file(const char *cgroup_path, const char *file, in __write_cgroup_file() argument
127 snprintf(file_path, sizeof(file_path), "%s/%s", cgroup_path, file); in __write_cgroup_file()
156 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file() local
158 format_cgroup_path(cgroup_path, relative_path); in write_cgroup_file()
159 return __write_cgroup_file(cgroup_path, file, buf); in write_cgroup_file()
177 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file_parent() local
179 format_parent_cgroup_path(cgroup_path, relative_path); in write_cgroup_file_parent()
180 return __write_cgroup_file(cgroup_path, file, buf); in write_cgroup_file_parent()
237 static int join_cgroup_from_top(const char *cgroup_path) in join_cgroup_from_top() argument
244 "%s/cgroup.procs", cgroup_path); in join_cgroup_from_top()
274 char cgroup_path[PATH_MAX + 1]; in join_cgroup() local
276 format_cgroup_path(cgroup_path, relative_path); in join_cgroup()
277 return join_cgroup_from_top(cgroup_path); in join_cgroup()
302 char cgroup_path[PATH_MAX + 1]; in join_parent_cgroup() local
304 format_parent_cgroup_path(cgroup_path, relative_path); in join_parent_cgroup()
305 return join_cgroup_from_top(cgroup_path); in join_parent_cgroup()
360 char cgroup_path[PATH_MAX + 1]; in remove_cgroup() local
362 format_cgroup_path(cgroup_path, relative_path); in remove_cgroup()
363 if (rmdir(cgroup_path)) in remove_cgroup()
364 log_err("rmdiring cgroup %s .. %s", relative_path, cgroup_path); in remove_cgroup()
379 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup() local
382 format_cgroup_path(cgroup_path, relative_path); in create_and_get_cgroup()
383 if (mkdir(cgroup_path, 0777) && errno != EEXIST) { in create_and_get_cgroup()
384 log_err("mkdiring cgroup %s .. %s", relative_path, cgroup_path); in create_and_get_cgroup()
388 fd = open(cgroup_path, O_RDONLY); in create_and_get_cgroup()