Lines Matching defs:path

39 #define format_cgroup_path_pid(buf, path, pid) \
41 CGROUP_WORK_DIR, pid, path)
43 #define format_cgroup_path(buf, path) \
44 format_cgroup_path_pid(buf, path, getpid())
46 #define format_parent_cgroup_path(buf, path) \
47 format_cgroup_path_pid(buf, path, getppid())
62 char path[PATH_MAX + 1];
70 snprintf(path, sizeof(path), "%s/cgroup.controllers",
72 fd = open(path, O_RDONLY);
74 log_err("Opening cgroup.controllers: %s", path);
80 log_err("Reading cgroup.controllers: %s", path);
92 snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path);
93 cfd = open(path, O_RDWR);
95 log_err("Opening cgroup.subtree_control: %s", path);
101 log_err("Enabling controller %s: %s", c, path);
112 * @relative_path: The cgroup path, relative to the workdir
153 * @relative_path: The cgroup path, relative to the workdir
173 * @relative_path: The cgroup path, relative to the parent process workdir
277 * @relative_path: The cgroup path, relative to the workdir, to join
280 * work dir, and it joins it. For example, passing "/my-cgroup" as the path
308 * @relative_path: The cgroup path, relative to parent process workdir, to join
324 * @relative_path: The cgroup path, relative to the workdir, to set xattr
398 * @relative_path: The cgroup path, relative to the workdir, to remove
417 * @relative_path: The cgroup path, relative to the workdir, to join
446 * get_cgroup_id_from_path - Get cgroup id for a particular cgroup path
447 * @cgroup_workdir: The absolute cgroup path
506 int cgroup_setup_and_join(const char *path) {
514 cg_fd = create_and_get_cgroup(path);
521 if (join_cgroup(path)) {