Lines Matching refs:root
1977 static struct aa_ns *__next_ns(struct aa_ns *root, struct aa_ns *ns) in __next_ns() argument
1981 AA_BUG(!root); in __next_ns()
1983 AA_BUG(ns != root && !mutex_is_locked(&ns->parent->lock)); in __next_ns()
1994 while (ns != root) { in __next_ns()
2016 static struct aa_profile *__first_profile(struct aa_ns *root, in __first_profile() argument
2019 AA_BUG(!root); in __first_profile()
2022 for (; ns; ns = __next_ns(root, ns)) { in __first_profile()
2078 static struct aa_profile *next_profile(struct aa_ns *root, in next_profile() argument
2086 return __first_profile(root, __next_ns(root, profile->ns)); in next_profile()
2101 struct aa_ns *root = aa_get_current_ns(); in p_start() local
2103 f->private = root; in p_start()
2106 mutex_lock_nested(&root->lock, root->level); in p_start()
2107 profile = __first_profile(root, root); in p_start()
2111 profile = next_profile(root, profile); in p_start()
2145 struct aa_ns *root = f->private, *ns; in p_stop() local
2148 for (ns = profile->ns; ns && ns != root; ns = ns->parent) in p_stop()
2151 mutex_unlock(&root->lock); in p_stop()
2152 aa_put_ns(root); in p_stop()
2165 struct aa_ns *root = f->private; in seq_show_profile() local
2167 aa_label_seq_xprint(f, root, &profile->label, in seq_show_profile()