Lines Matching refs:child
32 const char *child = cgroup;
38 if (!cg_read_strstr(child, "cgroup.controllers", "cpuset"))
44 if (cg_read_strstr(child, "cgroup.controllers", "cpuset"))
50 if (!cg_read_strstr(child, "cgroup.controllers", "cpuset"))
115 /* Fork a privileged child as a test object */
120 /* Carry out migration in a child process that can drop all privileges
124 * as hacky way to pass information about migration target to the child.
163 * Migrate a process between parent and child implicitely
169 char *parent = NULL, *child = NULL;
187 child = cg_name(parent, "cpuset_test_1");
188 if (!child)
190 child_procs = cg_name(child, "cgroup.procs");
193 if (cg_create(child))
202 /* Put a privileged child in the subtree and modify controller state
205 * The unprivileged child runs in subtree too to avoid parent and
208 object_pid = cg_run_nowait(child, idle_process_fn, NULL);
212 if (cg_run(child, do_controller_fn, parent) != EXIT_SUCCESS)
223 cg_destroy(child);
225 free(child);