Lines Matching refs:cgroup_path

59 static int __enable_controllers(const char *cgroup_path, const char *controllers)  in __enable_controllers()  argument
70 cgroup_path); in __enable_controllers()
91 snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path); in __enable_controllers()
122 char cgroup_path[PATH_MAX + 1]; in enable_controllers() local
124 format_cgroup_path(cgroup_path, relative_path); in enable_controllers()
125 return __enable_controllers(cgroup_path, controllers); in enable_controllers()
128 static int __write_cgroup_file(const char *cgroup_path, const char *file, in __write_cgroup_file() argument
134 snprintf(file_path, sizeof(file_path), "%s/%s", cgroup_path, file); in __write_cgroup_file()
163 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file() local
165 format_cgroup_path(cgroup_path, relative_path); in write_cgroup_file()
166 return __write_cgroup_file(cgroup_path, file, buf); in write_cgroup_file()
184 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file_parent() local
186 format_parent_cgroup_path(cgroup_path, relative_path); in write_cgroup_file_parent()
187 return __write_cgroup_file(cgroup_path, file, buf); in write_cgroup_file_parent()
250 static int join_cgroup_from_top(const char *cgroup_path) in join_cgroup_from_top() argument
257 "%s/cgroup.procs", cgroup_path); in join_cgroup_from_top()
287 char cgroup_path[PATH_MAX + 1]; in join_cgroup() local
289 format_cgroup_path(cgroup_path, relative_path); in join_cgroup()
290 return join_cgroup_from_top(cgroup_path); in join_cgroup()
315 char cgroup_path[PATH_MAX + 1]; in join_parent_cgroup() local
317 format_parent_cgroup_path(cgroup_path, relative_path); in join_parent_cgroup()
318 return join_cgroup_from_top(cgroup_path); in join_parent_cgroup()
387 char cgroup_path[PATH_MAX + 1]; in remove_cgroup() local
389 format_cgroup_path(cgroup_path, relative_path); in remove_cgroup()
390 if (rmdir(cgroup_path)) in remove_cgroup()
391 log_err("rmdiring cgroup %s .. %s", relative_path, cgroup_path); in remove_cgroup()
406 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup() local
409 format_cgroup_path(cgroup_path, relative_path); in create_and_get_cgroup()
410 if (mkdir(cgroup_path, 0777) && errno != EEXIST) { in create_and_get_cgroup()
411 log_err("mkdiring cgroup %s .. %s", relative_path, cgroup_path); in create_and_get_cgroup()
415 fd = open(cgroup_path, O_RDONLY); in create_and_get_cgroup()