Lines Matching defs:cgroup_path

60 static int __enable_controllers(const char *cgroup_path, const char *controllers)
71 cgroup_path);
92 snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path);
123 char cgroup_path[PATH_MAX + 1];
125 format_cgroup_path(cgroup_path, relative_path);
126 return __enable_controllers(cgroup_path, controllers);
129 static int __write_cgroup_file(const char *cgroup_path, const char *file,
135 snprintf(file_path, sizeof(file_path), "%s/%s", cgroup_path, file);
164 char cgroup_path[PATH_MAX - 24];
166 format_cgroup_path(cgroup_path, relative_path);
167 return __write_cgroup_file(cgroup_path, file, buf);
185 char cgroup_path[PATH_MAX - 24];
187 format_parent_cgroup_path(cgroup_path, relative_path);
188 return __write_cgroup_file(cgroup_path, file, buf);
251 static int join_cgroup_from_top(const char *cgroup_path)
258 "%s/cgroup.procs", cgroup_path);
288 char cgroup_path[PATH_MAX + 1];
290 format_cgroup_path(cgroup_path, relative_path);
291 return join_cgroup_from_top(cgroup_path);
316 char cgroup_path[PATH_MAX + 1];
318 format_parent_cgroup_path(cgroup_path, relative_path);
319 return join_cgroup_from_top(cgroup_path);
336 char cgroup_path[PATH_MAX + 1];
338 format_cgroup_path(cgroup_path, relative_path);
339 return setxattr(cgroup_path, name, value, strlen(value) + 1, 0);
408 char cgroup_path[PATH_MAX + 1];
410 format_cgroup_path(cgroup_path, relative_path);
411 if (rmdir(cgroup_path))
412 log_err("rmdiring cgroup %s .. %s", relative_path, cgroup_path);
418 * @pid: PID to be used to find cgroup_path
428 char cgroup_path[PATH_MAX + 1];
430 format_cgroup_path_pid(cgroup_path, relative_path, pid);
431 if (rmdir(cgroup_path))
432 log_err("rmdiring cgroup %s .. %s", relative_path, cgroup_path);
447 char cgroup_path[PATH_MAX + 1];
450 format_cgroup_path(cgroup_path, relative_path);
451 if (mkdir(cgroup_path, 0777) && errno != EEXIST) {
452 log_err("mkdiring cgroup %s .. %s", relative_path, cgroup_path);
456 fd = open(cgroup_path, O_RDONLY);