Lines Matching refs:root
2066 static struct aa_ns *__next_ns(struct aa_ns *root, struct aa_ns *ns) in __next_ns() argument
2070 AA_BUG(!root); in __next_ns()
2072 AA_BUG(ns != root && !mutex_is_locked(&ns->parent->lock)); in __next_ns()
2083 while (ns != root) { in __next_ns()
2105 static struct aa_profile *__first_profile(struct aa_ns *root, in __first_profile() argument
2108 AA_BUG(!root); in __first_profile()
2111 for (; ns; ns = __next_ns(root, ns)) { in __first_profile()
2167 static struct aa_profile *next_profile(struct aa_ns *root, in next_profile() argument
2175 return __first_profile(root, __next_ns(root, profile->ns)); in next_profile()
2190 struct aa_ns *root = aa_get_current_ns(); in p_start() local
2192 f->private = root; in p_start()
2195 mutex_lock_nested(&root->lock, root->level); in p_start()
2196 profile = __first_profile(root, root); in p_start()
2200 profile = next_profile(root, profile); in p_start()
2234 struct aa_ns *root = f->private, *ns; in p_stop() local
2237 for (ns = profile->ns; ns && ns != root; ns = ns->parent) in p_stop()
2240 mutex_unlock(&root->lock); in p_stop()
2241 aa_put_ns(root); in p_stop()
2254 struct aa_ns *root = f->private; in seq_show_profile() local
2256 aa_label_seq_xprint(f, root, &profile->label, in seq_show_profile()