Lines Matching refs:parent
360 static void cgroup_dir_mk(const struct cgroup_dir *const parent,
366 new->dir_root = parent->dir_root;
368 new->dir_parent = parent;
369 new->ctrl_field = parent->ctrl_field;
372 if (!mkdirat(parent->dir_fd, dir_name, 0777)) {
380 dpath = tst_decode_fd(parent->dir_fd);
392 parent->dir_fd, dpath, dir_name);
396 new->dir_fd = SAFE_OPENAT(parent->dir_fd, dir_name,
956 * We probably also want to remove the LTP parent CGroup, although
1053 static void cgroup_group_add_dir(const struct tst_cg_group *const parent,
1069 if (!parent || dir->dir_root->ver == TST_CG_V1)
1073 SAFE_CG_PRINTF(parent, "cgroup.subtree_control",
1084 tst_cg_group_mk(const struct tst_cg_group *const parent,
1104 for_each_dir(parent, 0, dir) {
1107 cgroup_group_add_dir(parent, cg, new_dir);