Lines Matching refs:parent
45 for ( ; view; view = view->parent) { in aa_ns_visible()
46 if (view->parent == curr) in aa_ns_visible()
144 aa_put_ns(ns->parent); in aa_free_ns()
242 static struct aa_ns *__aa_create_ns(struct aa_ns *parent, const char *name, in __aa_create_ns() argument
248 AA_BUG(!parent); in __aa_create_ns()
250 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_create_ns()
252 ns = alloc_ns(parent->base.hname, name); in __aa_create_ns()
255 ns->level = parent->level + 1; in __aa_create_ns()
257 error = __aafs_ns_mkdir(ns, ns_subns_dir(parent), name, dir); in __aa_create_ns()
265 ns->parent = aa_get_ns(parent); in __aa_create_ns()
266 list_add_rcu(&ns->base.list, &parent->sub_ns); in __aa_create_ns()
282 struct aa_ns *__aa_find_or_create_ns(struct aa_ns *parent, const char *name, in __aa_find_or_create_ns() argument
287 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns()
291 ns = aa_get_ns(__aa_find_ns(&parent->sub_ns, name)); in __aa_find_or_create_ns()
293 ns = __aa_create_ns(parent, name, dir); in __aa_find_or_create_ns()
308 struct aa_ns *aa_prepare_ns(struct aa_ns *parent, const char *name) in aa_prepare_ns() argument
312 mutex_lock_nested(&parent->lock, parent->level); in aa_prepare_ns()
315 ns = aa_get_ns(__aa_find_ns(&parent->sub_ns, name)); in aa_prepare_ns()
317 ns = __aa_create_ns(parent, name, NULL); in aa_prepare_ns()
318 mutex_unlock(&parent->lock); in aa_prepare_ns()
342 if (ns->parent) { in destroy_ns()
347 ns_unconfined(ns->parent)); in destroy_ns()