Lines Matching refs:parent

33 	const char *parent = arg;  in do_controller_fn()  local
41 if (cg_write(parent, "cgroup.subtree_control", "+cpuset")) in do_controller_fn()
47 if (cg_write(parent, "cgroup.subtree_control", "-cpuset")) in do_controller_fn()
67 char *parent = NULL, *child_src = NULL, *child_dst = NULL; in test_cpuset_perms_object() local
73 parent = cg_name(root, "cpuset_test_0"); in test_cpuset_perms_object()
74 if (!parent) in test_cpuset_perms_object()
76 parent_procs = cg_name(parent, "cgroup.procs"); in test_cpuset_perms_object()
79 if (cg_create(parent)) in test_cpuset_perms_object()
82 child_src = cg_name(parent, "cpuset_test_1"); in test_cpuset_perms_object()
91 child_dst = cg_name(parent, "cpuset_test_2"); in test_cpuset_perms_object()
100 if (cg_write(parent, "cgroup.subtree_control", "+cpuset")) in test_cpuset_perms_object()
145 cg_destroy(parent); in test_cpuset_perms_object()
147 free(parent); in test_cpuset_perms_object()
169 char *parent = NULL, *child = NULL; in test_cpuset_perms_subtree() local
175 parent = cg_name(root, "cpuset_test_0"); in test_cpuset_perms_subtree()
176 if (!parent) in test_cpuset_perms_subtree()
178 parent_procs = cg_name(parent, "cgroup.procs"); in test_cpuset_perms_subtree()
181 parent_subctl = cg_name(parent, "cgroup.subtree_control"); in test_cpuset_perms_subtree()
184 if (cg_create(parent)) in test_cpuset_perms_subtree()
187 child = cg_name(parent, "cpuset_test_1"); in test_cpuset_perms_subtree()
212 if (cg_run(child, do_controller_fn, parent) != EXIT_SUCCESS) in test_cpuset_perms_subtree()
227 cg_destroy(parent); in test_cpuset_perms_subtree()
230 free(parent); in test_cpuset_perms_subtree()