Lines Matching defs:parent
29 Unit *son, *daughter, *parent, *root, *grandchild, *parent_deep;
56 assert_se(manager_load_unit(m, "parent.slice", NULL, NULL, &parent) >= 0);
60 assert_se(manager_load_unit(m, "parent-deep.slice", NULL, NULL, &parent_deep) >= 0);
61 assert_se(parent->load_state == UNIT_LOADED);
66 assert_se(UNIT_DEREF(son->slice) == parent);
67 assert_se(UNIT_DEREF(daughter->slice) == parent);
68 assert_se(UNIT_DEREF(parent_deep->slice) == parent);
70 root = UNIT_DEREF(parent->slice);
77 assert_se(unit_get_own_mask(parent) == CGROUP_MASK_BLKIO);
85 assert_se(unit_get_members_mask(parent) == (CGROUP_MASK_CPU | CGROUP_MASK_CPUACCT | CGROUP_MASK_MEMORY));
93 assert_se(unit_get_siblings_mask(parent) == (CGROUP_MASK_CPU | CGROUP_MASK_CPUACCT | CGROUP_MASK_BLKIO | CGROUP_MASK_MEMORY));
101 assert_se(unit_get_target_mask(parent) == ((CGROUP_MASK_CPU | CGROUP_MASK_CPUACCT | CGROUP_MASK_BLKIO | CGROUP_MASK_MEMORY) & m->cgroup_supported));