Home
last modified time | relevance | path

Searched refs:wlist (Results 1 – 6 of 6) sorted by relevance

/linux/include/linux/
H A Dwatch_queue.h94 static inline void init_watch_list(struct watch_list *wlist, in init_watch_list() argument
97 INIT_HLIST_HEAD(&wlist->watchers); in init_watch_list()
98 spin_lock_init(&wlist->lock); in init_watch_list()
99 wlist->release_watch = release_watch; in init_watch_list()
102 static inline void post_watch_notification(struct watch_list *wlist, in post_watch_notification() argument
107 if (unlikely(wlist)) in post_watch_notification()
108 __post_watch_notification(wlist, n, cred, id); in post_watch_notification()
111 static inline void remove_watch_list(struct watch_list *wlist, u64 id) in remove_watch_list() argument
113 if (wlist) { in remove_watch_list()
114 remove_watch_from_object(wlist, NULL, id, true); in remove_watch_list()
[all …]
/linux/kernel/
H A Dwatch_queue.c193 void __post_watch_notification(struct watch_list *wlist, in __post_watch_notification() argument
209 hlist_for_each_entry_rcu(watch, &wlist->watchers, list_node) { in __post_watch_notification()
462 static int add_one_watch(struct watch *watch, struct watch_list *wlist, struct watch_queue *wqueue) in add_one_watch() argument
467 hlist_for_each_entry(w, &wlist->watchers, list_node) { in add_one_watch()
480 rcu_assign_pointer(watch->watch_list, wlist); in add_one_watch()
485 hlist_add_head_rcu(&watch->list_node, &wlist->watchers); in add_one_watch()
501 int add_watch_to_object(struct watch *watch, struct watch_list *wlist) in add_watch_to_object() argument
510 spin_lock(&wlist->lock); in add_watch_to_object()
511 ret = add_one_watch(watch, wlist, wqueue); in add_watch_to_object()
512 spin_unlock(&wlist->lock); in add_watch_to_object()
[all …]
/linux/Documentation/translations/zh_CN/core-api/
H A Dwatch_queue.rst104 void init_watch_list(struct watch_list *wlist,
105 void (*release_watch)(struct watch *wlist));
110 * ``void remove_watch_list(struct watch_list *wlist);``
163 * ``int add_watch_to_object(struct watch *watch, struct watch_list *wlist);``
170 int remove_watch_from_object(struct watch_list *wlist,
178 * ``int remove_watch_from_object(struct watch_list *wlist, NULL, 0, true);``
190 void post_watch_notification(struct watch_list *wlist,
/linux/Documentation/core-api/
H A Dwatch_queue.rst108 void init_watch_list(struct watch_list *wlist,
109 void (*release_watch)(struct watch *wlist));
116 * ``void remove_watch_list(struct watch_list *wlist);``
178 * ``int add_watch_to_object(struct watch *watch, struct watch_list *wlist);``
186 int remove_watch_from_object(struct watch_list *wlist,
195 * ``int remove_watch_from_object(struct watch_list *wlist, NULL, 0, true);``
210 void post_watch_notification(struct watch_list *wlist,
/linux/security/keys/
H A Dkeyctl.c1776 struct watch_list *wlist = NULL; in keyctl_watch_key() local
1799 wlist = kzalloc_obj(*wlist); in keyctl_watch_key()
1800 if (!wlist) in keyctl_watch_key()
1802 init_watch_list(wlist, NULL); in keyctl_watch_key()
1819 key->watchers = wlist; in keyctl_watch_key()
1820 wlist = NULL; in keyctl_watch_key()
1842 kfree(wlist); in keyctl_watch_key()
/linux/sound/soc/
H A Dsoc-dapm.c389 struct snd_soc_dapm_widget_list *wlist;
830 kfree(data->wlist); in dapm_kcontrol_get_wlist()
839 return data->wlist; in dapm_kcontrol_add_widget()
849 if (data->wlist) in dapm_kcontrol_add_widget()
850 n = data->wlist->num_widgets + 1; in dapm_kcontrol_add_widget()
854 new_wlist = krealloc(data->wlist, in dapm_kcontrol_add_widget()
863 data->wlist = new_wlist; in dapm_kcontrol_add_path()
1023 struct list_head *wlist = &w->dapm->card->widgets; in dapm_wcache_lookup()
1027 list_for_each_entry_from(w, wlist, list) { in dapm_wcache_lookup()
2051 struct snd_soc_dapm_widget_list *wlist; in dapm_widget_update()
387 struct snd_soc_dapm_widget_list *wlist; global() member
1017 struct list_head *wlist = &w->dapm->card->widgets; dapm_wcache_lookup() local
2043 struct snd_soc_dapm_widget_list *wlist; dapm_widget_update() local
[all...]