Home
last modified time | relevance | path

Searched refs:child2 (Results 1 – 3 of 3) sorted by relevance

/tools/include/linux/
A Drbtree_augmented.h220 struct rb_node *successor = child, *child2; in __rb_erase_augmented() local
234 child2 = successor->rb_right; in __rb_erase_augmented()
257 child2 = successor->rb_right; in __rb_erase_augmented()
258 WRITE_ONCE(parent->rb_left, child2); in __rb_erase_augmented()
274 if (child2) { in __rb_erase_augmented()
276 rb_set_parent_color(child2, parent, RB_BLACK); in __rb_erase_augmented()
/tools/testing/selftests/cgroup/
A Dtest_cpu.c42 char *parent = NULL, *child = NULL, *parent2 = NULL, *child2 = NULL; in test_cpucg_subtree_control() local
74 child2 = cg_name(parent2, "cpucg_test_child"); in test_cpucg_subtree_control()
75 if (!child2) in test_cpucg_subtree_control()
78 if (cg_create(child2)) in test_cpucg_subtree_control()
81 if (!cg_read_strstr(child2, "cgroup.controllers", "cpu")) in test_cpucg_subtree_control()
89 cg_destroy(child2); in test_cpucg_subtree_control()
90 free(child2); in test_cpucg_subtree_control()
A Dtest_memcontrol.c111 char *parent, *child, *parent2 = NULL, *child2 = NULL; in test_memcg_subtree_control() local
135 child2 = cg_name(root, "memcg_test_1/memcg_test_1"); in test_memcg_subtree_control()
136 if (!parent2 || !child2) in test_memcg_subtree_control()
142 if (cg_create(child2)) in test_memcg_subtree_control()
145 if (cg_read(child2, "cgroup.controllers", buf, sizeof(buf))) in test_memcg_subtree_control()
148 if (!cg_read_strstr(child2, "cgroup.controllers", "memory")) in test_memcg_subtree_control()
154 cg_destroy(child2); in test_memcg_subtree_control()
159 free(child2); in test_memcg_subtree_control()

Completed in 7 milliseconds