Lines Matching refs:parent
33 const char *parent = arg;
41 if (cg_write(parent, "cgroup.subtree_control", "+cpuset"))
47 if (cg_write(parent, "cgroup.subtree_control", "-cpuset"))
58 * The success should only depend on the parent cgroup permissions and not the
67 char *parent = NULL, *child_src = NULL, *child_dst = NULL;
73 parent = cg_name(root, "cpuset_test_0");
74 if (!parent)
76 parent_procs = cg_name(parent, "cgroup.procs");
79 if (cg_create(parent))
82 child_src = cg_name(parent, "cpuset_test_1");
91 child_dst = cg_name(parent, "cpuset_test_2");
100 if (cg_write(parent, "cgroup.subtree_control", "+cpuset"))
145 cg_destroy(parent);
147 free(parent);
163 * Migrate a process between parent and child implicitely
169 char *parent = NULL, *child = NULL;
175 parent = cg_name(root, "cpuset_test_0");
176 if (!parent)
178 parent_procs = cg_name(parent, "cgroup.procs");
181 parent_subctl = cg_name(parent, "cgroup.subtree_control");
184 if (cg_create(parent))
187 child = cg_name(parent, "cpuset_test_1");
205 * The unprivileged child runs in subtree too to avoid parent and
212 if (cg_run(child, do_controller_fn, parent) != EXIT_SUCCESS)
227 cg_destroy(parent);
230 free(parent);