Lines Matching refs:cgroup_path

51 static int __enable_controllers(const char *cgroup_path, const char *controllers)  in __enable_controllers()  argument
62 cgroup_path); in __enable_controllers()
83 snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path); in __enable_controllers()
114 char cgroup_path[PATH_MAX + 1]; in enable_controllers() local
116 format_cgroup_path(cgroup_path, relative_path); in enable_controllers()
117 return __enable_controllers(cgroup_path, controllers); in enable_controllers()
120 static int __write_cgroup_file(const char *cgroup_path, const char *file, in __write_cgroup_file() argument
126 snprintf(file_path, sizeof(file_path), "%s/%s", cgroup_path, file); in __write_cgroup_file()
155 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file() local
157 format_cgroup_path(cgroup_path, relative_path); in write_cgroup_file()
158 return __write_cgroup_file(cgroup_path, file, buf); in write_cgroup_file()
176 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file_parent() local
178 format_parent_cgroup_path(cgroup_path, relative_path); in write_cgroup_file_parent()
179 return __write_cgroup_file(cgroup_path, file, buf); in write_cgroup_file_parent()
236 static int join_cgroup_from_top(const char *cgroup_path) in join_cgroup_from_top() argument
243 "%s/cgroup.procs", cgroup_path); in join_cgroup_from_top()
273 char cgroup_path[PATH_MAX + 1]; in join_cgroup() local
275 format_cgroup_path(cgroup_path, relative_path); in join_cgroup()
276 return join_cgroup_from_top(cgroup_path); in join_cgroup()
289 char cgroup_path[PATH_MAX + 1]; in join_parent_cgroup() local
291 format_parent_cgroup_path(cgroup_path, relative_path); in join_parent_cgroup()
292 return join_cgroup_from_top(cgroup_path); in join_parent_cgroup()
347 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup() local
350 format_cgroup_path(cgroup_path, relative_path); in create_and_get_cgroup()
351 if (mkdir(cgroup_path, 0777) && errno != EEXIST) { in create_and_get_cgroup()
352 log_err("mkdiring cgroup %s .. %s", relative_path, cgroup_path); in create_and_get_cgroup()
356 fd = open(cgroup_path, O_RDONLY); in create_and_get_cgroup()