Lines Matching refs:list

101  * __add_profile - add a profiles to list and label tree
102 * @list: list to add it to (NOT NULL)
107 * Requires: namespace lock be held, or list not be shared
109 static void __add_profile(struct list_head *list, struct aa_profile *profile)
113 AA_BUG(!list);
118 list_add_rcu(&profile->base.list, list);
119 /* get list reference */
127 * __list_remove_profile - remove a profile from the list it is on
130 * remove a profile from the list, warning generally removal should
134 * put @profile list refcount
136 * Requires: namespace lock be held, or list not have been live
144 list_del_rcu(&profile->base.list);
152 * Requires: namespace list lock be held, or list not be shared
169 * __aa_profile_list_release - remove all profiles on the list and put refs
170 * @head: list of profiles (NOT NULL)
177 list_for_each_entry_safe(profile, tmp, head, base.list)
298 * __strn_find_child - find a profile on @head list using substring of @name
299 * @head: list to search (NOT NULL)
314 * __find_child - find a profile on @head list with a name matching @name
315 * @head: list to search (NOT NULL)
386 * @base: base list to start looking up profile name from (NOT NULL)
444 /* the unconfined profile is not in the regular profile list */
497 * null profiles are added to the profile list but the list does not
717 list_for_each_entry(ent, lh, list) {
729 * __replace_profile - replace @old with @new on a list
737 * refcount @new for list, put @old list refcount
739 * Requires: namespace list lock be held, or list not be shared
749 list_for_each_entry_safe(child, tmp, &lh, base.list) {
752 list_del_init(&child->base.list);
762 /* list refcount transferred to @new */
765 list_add_rcu(&child->base.list, &new->base.profiles);
778 if (list_empty(&new->base.list)) {
779 /* new is not on a list already */
780 list_replace_rcu(&old->base.list, &new->base.list);
844 * aa_replace_profiles - replace profile(s) on the profile list
850 * unpack and replace a profile on the profile list and uses of that profile
853 * on the profile list it is added.
878 * fail. Sort ent list and take ns locks in hierarchy order
881 list_for_each_entry(ent, &lh, list) {
915 list_for_each_entry(rawdata_ent, &ns->rawdata_list, list) {
929 list_for_each_entry(ent, &lh, list) {
980 list_for_each_entry(ent, &lh, list) {
1001 list_for_each_entry_safe(ent, tmp, &lh, list) {
1002 list_del_init(&ent->list);
1063 list_for_each_entry(tmp, &lh, list) {
1073 list_for_each_entry_safe(ent, tmp, &lh, list) {
1074 list_del_init(&ent->list);