Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/cgroup/
H A Dtest_cpu.c42 char *parent = NULL, *child = NULL, *parent2 = NULL, *child2 = NULL; in test_cpucg_subtree_control() local
67 parent2 = cg_name(root, "cpucg_test_1"); in test_cpucg_subtree_control()
68 if (!parent2) in test_cpucg_subtree_control()
71 if (cg_create(parent2)) in test_cpucg_subtree_control()
74 child2 = cg_name(parent2, "cpucg_test_child"); in test_cpucg_subtree_control()
93 cg_destroy(parent2); in test_cpucg_subtree_control()
94 free(parent2); in test_cpucg_subtree_control()
H A Dtest_memcontrol.c114 char *parent, *child, *parent2 = NULL, *child2 = NULL; in test_memcg_subtree_control()
137 parent2 = cg_name(root, "memcg_test_1"); in test_memcg_subtree_control()
139 if (!parent2 || !child2) in test_memcg_subtree_control()
142 if (cg_create(parent2)) in test_memcg_subtree_control()
159 cg_destroy(parent2); in test_memcg_subtree_control()
161 free(parent2); in test_memcg_subtree_control()
111 char *parent, *child, *parent2 = NULL, *child2 = NULL; test_memcg_subtree_control() local
/linux/security/landlock/
H A Dfs.c434 * Return: True if child1 may be moved from parent1 to parent2 without
436 * that child2 may be used from parent2 to parent1 without increasing its access in no_more_access()
442 const struct layer_access_masks *const parent2, in no_more_access()
446 if (!may_refer(parent1, child1, parent2, child1_is_dir)) in no_more_access()
452 return may_refer(parent2, child2, parent1, child2_is_dir);
730 * @dentry_child2: Dentry to the initial child of the parent2 path. This
439 no_more_access(const struct layer_access_masks * const parent1,const struct layer_access_masks * const child1,const bool child1_is_dir,const struct layer_access_masks * const parent2,const struct layer_access_masks * const child2,const bool child2_is_dir) no_more_access() argument