Lines Matching refs:parent
48 for ( ; view; view = view->parent) { in aa_ns_visible()
49 if (view->parent == curr) in aa_ns_visible()
155 aa_put_ns(ns->parent); in aa_free_ns()
253 static struct aa_ns *__aa_create_ns(struct aa_ns *parent, const char *name, in __aa_create_ns() argument
259 AA_BUG(!parent); in __aa_create_ns()
261 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_create_ns()
263 ns = alloc_ns(parent->base.hname, name); in __aa_create_ns()
266 ns->level = parent->level + 1; in __aa_create_ns()
268 error = __aafs_ns_mkdir(ns, ns_subns_dir(parent), name, dir); in __aa_create_ns()
276 ns->parent = aa_get_ns(parent); in __aa_create_ns()
277 list_add_rcu(&ns->base.list, &parent->sub_ns); in __aa_create_ns()
293 struct aa_ns *__aa_find_or_create_ns(struct aa_ns *parent, const char *name, in __aa_find_or_create_ns() argument
298 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns()
302 ns = aa_get_ns(__aa_find_ns(&parent->sub_ns, name)); in __aa_find_or_create_ns()
304 ns = __aa_create_ns(parent, name, dir); in __aa_find_or_create_ns()
319 struct aa_ns *aa_prepare_ns(struct aa_ns *parent, const char *name) in aa_prepare_ns() argument
323 mutex_lock_nested(&parent->lock, parent->level); in aa_prepare_ns()
326 ns = aa_get_ns(__aa_find_ns(&parent->sub_ns, name)); in aa_prepare_ns()
328 ns = __aa_create_ns(parent, name, NULL); in aa_prepare_ns()
329 mutex_unlock(&parent->lock); in aa_prepare_ns()
353 if (ns->parent) { in destroy_ns()
358 ns_unconfined(ns->parent)); in destroy_ns()