Lines Matching refs:parent
454 * is frozen and the parent cgroup remains frozen too.
459 char *parent, *child = NULL;
462 parent = cg_name(root, "cg_test_mkdir_A");
463 if (!parent)
466 child = cg_name(parent, "cg_test_mkdir_B");
470 if (cg_create(parent))
473 if (cg_freeze_wait(parent, true))
489 if (cg_check_frozen(parent, true))
498 if (parent)
499 cg_destroy(parent);
500 free(parent);
505 * The test creates two nested cgroups, freezes the parent
506 * and removes the child. Then it checks that the parent cgroup
513 char *parent, *child = NULL;
515 parent = cg_name(root, "cg_test_rmdir_A");
516 if (!parent)
519 child = cg_name(parent, "cg_test_rmdir_B");
523 if (cg_create(parent))
529 if (cg_freeze_wait(parent, true))
535 if (cg_check_frozen(parent, true))
550 if (parent)
551 cg_destroy(parent);
552 free(parent);