Lines Matching refs:parent
397 * is frozen and the parent cgroup remains frozen too.
402 char *parent, *child = NULL;
405 parent = cg_name(root, "cg_test_mkdir_A");
406 if (!parent)
409 child = cg_name(parent, "cg_test_mkdir_B");
413 if (cg_create(parent))
416 if (cg_freeze_wait(parent, true))
432 if (cg_check_frozen(parent, true))
441 if (parent)
442 cg_destroy(parent);
443 free(parent);
448 * The test creates two nested cgroups, freezes the parent
449 * and removes the child. Then it checks that the parent cgroup
456 char *parent, *child = NULL;
458 parent = cg_name(root, "cg_test_rmdir_A");
459 if (!parent)
462 child = cg_name(parent, "cg_test_rmdir_B");
466 if (cg_create(parent))
472 if (cg_freeze_wait(parent, true))
478 if (cg_check_frozen(parent, true))
493 if (parent)
494 cg_destroy(parent);
495 free(parent);