Lines Matching refs:root
2064 static struct aa_ns *__next_ns(struct aa_ns *root, struct aa_ns *ns) in __next_ns() argument
2068 AA_BUG(!root); in __next_ns()
2070 AA_BUG(ns != root && !mutex_is_locked(&ns->parent->lock)); in __next_ns()
2081 while (ns != root) { in __next_ns()
2103 static struct aa_profile *__first_profile(struct aa_ns *root, in __first_profile() argument
2106 AA_BUG(!root); in __first_profile()
2109 for (; ns; ns = __next_ns(root, ns)) { in __first_profile()
2165 static struct aa_profile *next_profile(struct aa_ns *root, in next_profile() argument
2173 return __first_profile(root, __next_ns(root, profile->ns)); in next_profile()
2188 struct aa_ns *root = aa_get_current_ns(); in p_start() local
2190 f->private = root; in p_start()
2193 mutex_lock_nested(&root->lock, root->level); in p_start()
2194 profile = __first_profile(root, root); in p_start()
2198 profile = next_profile(root, profile); in p_start()
2232 struct aa_ns *root = f->private, *ns; in p_stop() local
2235 for (ns = profile->ns; ns && ns != root; ns = ns->parent) in p_stop()
2238 mutex_unlock(&root->lock); in p_stop()
2239 aa_put_ns(root); in p_stop()
2252 struct aa_ns *root = f->private; in seq_show_profile() local
2254 aa_label_seq_xprint(f, root, &profile->label, in seq_show_profile()