Lines Matching refs:root
569 static struct aa_namespace *__next_namespace(struct aa_namespace *root, in __next_namespace() argument
583 while (ns != root) { in __next_namespace()
605 static struct aa_profile *__first_profile(struct aa_namespace *root, in __first_profile() argument
608 for (; ns; ns = __next_namespace(root, ns)) { in __first_profile()
662 static struct aa_profile *next_profile(struct aa_namespace *root, in next_profile() argument
670 return __first_profile(root, __next_namespace(root, profile->ns)); in next_profile()
685 struct aa_namespace *root = aa_current_profile()->ns; in p_start() local
687 f->private = aa_get_namespace(root); in p_start()
691 mutex_lock(&root->lock); in p_start()
692 profile = __first_profile(root, root); in p_start()
696 profile = next_profile(root, profile); in p_start()
730 struct aa_namespace *root = f->private, *ns; in p_stop() local
733 for (ns = profile->ns; ns && ns != root; ns = ns->parent) in p_stop()
736 mutex_unlock(&root->lock); in p_stop()
737 aa_put_namespace(root); in p_stop()
750 struct aa_namespace *root = f->private; in seq_show_profile() local
752 if (profile->ns != root) in seq_show_profile()
753 seq_printf(f, ":%s://", aa_ns_name(root, profile->ns)); in seq_show_profile()