Lines Matching refs:name
87 static struct aa_ns *alloc_ns(const char *prefix, const char *name) in alloc_ns() argument
95 if (!aa_policy_init(&ns->base, prefix, name, GFP_KERNEL)) in alloc_ns()
162 struct aa_ns *aa_findn_ns(struct aa_ns *root, const char *name, size_t n) in aa_findn_ns() argument
167 ns = aa_get_ns(__aa_findn_ns(&root->sub_ns, name, n)); in aa_findn_ns()
183 struct aa_ns *aa_find_ns(struct aa_ns *root, const char *name) in aa_find_ns() argument
185 return aa_findn_ns(root, name, strlen(name)); in aa_find_ns()
231 struct aa_ns *aa_lookupn_ns(struct aa_ns *view, const char *name, size_t n) in aa_lookupn_ns() argument
236 ns = aa_get_ns(__aa_lookupn_ns(view, name, n)); in aa_lookupn_ns()
242 static struct aa_ns *__aa_create_ns(struct aa_ns *parent, const char *name, in __aa_create_ns() argument
249 AA_BUG(!name); in __aa_create_ns()
252 ns = alloc_ns(parent->base.hname, name); in __aa_create_ns()
257 error = __aafs_ns_mkdir(ns, ns_subns_dir(parent), name, dir); in __aa_create_ns()
260 ns->base.name); 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
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
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()