/linux-6.3-rc2/include/linux/ |
A D | watch_queue.h | 95 static inline void init_watch_list(struct watch_list *wlist, in init_watch_list() argument 98 INIT_HLIST_HEAD(&wlist->watchers); in init_watch_list() 99 spin_lock_init(&wlist->lock); in init_watch_list() 100 wlist->release_watch = release_watch; in init_watch_list() 103 static inline void post_watch_notification(struct watch_list *wlist, in post_watch_notification() argument 108 if (unlikely(wlist)) in post_watch_notification() 109 __post_watch_notification(wlist, n, cred, id); in post_watch_notification() 112 static inline void remove_watch_list(struct watch_list *wlist, u64 id) in remove_watch_list() argument 114 if (wlist) { in remove_watch_list() 115 remove_watch_from_object(wlist, NULL, id, true); in remove_watch_list() [all …]
|
/linux-6.3-rc2/kernel/ |
A D | watch_queue.c | 506 spin_lock(&wlist->lock); in add_watch_to_object() 508 spin_unlock(&wlist->lock); in add_watch_to_object() 538 spin_lock(&wlist->lock); in remove_watch_from_object() 544 spin_unlock(&wlist->lock); in remove_watch_from_object() 551 spin_unlock(&wlist->lock); in remove_watch_from_object() 575 if (wlist->release_watch) { in remove_watch_from_object() 578 release_watch = wlist->release_watch; in remove_watch_from_object() 600 struct watch_list *wlist; in watch_queue_clear() local 622 if (wlist) { in watch_queue_clear() 625 spin_lock(&wlist->lock); in watch_queue_clear() [all …]
|
A D | audit_watch.c | 42 struct list_head wlist; /* entry in parent->watches list */ member 117 list_del(&watch->wlist); in audit_remove_watch() 256 list_for_each_entry_safe(owatch, nextw, &parent->watches, wlist) { in audit_update_watch() 316 list_add(&nwatch->wlist, &parent->watches); in audit_update_watch() 329 list_for_each_entry_safe(w, nextw, &parent->watches, wlist) { in audit_remove_parent_watches() 373 list_for_each_entry(w, &parent->watches, wlist) { in audit_add_to_parent() 393 list_add(&watch->wlist, &parent->watches); in audit_add_to_parent()
|
/linux-6.3-rc2/Documentation/translations/zh_CN/core-api/ |
A D | watch_queue.rst | 104 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-6.3-rc2/drivers/staging/greybus/ |
A D | audio_topology.c | 388 struct snd_soc_dapm_widget_list *wlist = snd_kcontrol_chip(kcontrol); in gbcodec_mixer_dapm_ctl_get() local 389 struct snd_soc_dapm_widget *widget = wlist->widgets[0]; in gbcodec_mixer_dapm_ctl_get() 437 struct snd_soc_dapm_widget_list *wlist = snd_kcontrol_chip(kcontrol); in gbcodec_mixer_dapm_ctl_put() local 438 struct snd_soc_dapm_widget *widget = wlist->widgets[0]; in gbcodec_mixer_dapm_ctl_put() 473 for (wi = 0; wi < wlist->num_widgets; wi++) { in gbcodec_mixer_dapm_ctl_put() 474 widget = wlist->widgets[wi]; in gbcodec_mixer_dapm_ctl_put() 718 struct snd_soc_dapm_widget_list *wlist = snd_kcontrol_chip(kcontrol); in gbcodec_enum_dapm_ctl_get() local 719 struct snd_soc_dapm_widget *widget = wlist->widgets[0]; in gbcodec_enum_dapm_ctl_get() 767 struct snd_soc_dapm_widget *widget = wlist->widgets[0]; in gbcodec_enum_dapm_ctl_put() 843 for (wi = 0; wi < wlist->num_widgets; wi++) { in gbcodec_enum_dapm_ctl_put() [all …]
|
/linux-6.3-rc2/Documentation/core-api/ |
A D | watch_queue.rst | 108 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-6.3-rc2/security/keys/ |
A D | keyctl.c | 1771 struct watch_list *wlist = NULL; in keyctl_watch_key() local 1794 wlist = kzalloc(sizeof(*wlist), GFP_KERNEL); in keyctl_watch_key() 1795 if (!wlist) in keyctl_watch_key() 1797 init_watch_list(wlist, NULL); in keyctl_watch_key() 1814 key->watchers = wlist; in keyctl_watch_key() 1815 wlist = NULL; in keyctl_watch_key() 1837 kfree(wlist); in keyctl_watch_key()
|
/linux-6.3-rc2/kernel/locking/ |
A D | rwsem.c | 417 struct list_head wlist; in rwsem_mark_wake() local 509 INIT_LIST_HEAD(&wlist); in rwsem_mark_wake() 515 list_move_tail(&waiter->list, &wlist); in rwsem_mark_wake() 549 list_for_each_entry_safe(waiter, tmp, &wlist, list) { in rwsem_mark_wake()
|
/linux-6.3-rc2/sound/soc/ |
A D | soc-dapm.c | 349 struct snd_soc_dapm_widget_list *wlist; member 470 kfree(data->wlist); in dapm_kcontrol_free() 479 return data->wlist; in dapm_kcontrol_get_wlist() 489 if (data->wlist) in dapm_kcontrol_add_widget() 490 n = data->wlist->num_widgets + 1; in dapm_kcontrol_add_widget() 494 new_wlist = krealloc(data->wlist, in dapm_kcontrol_add_widget() 503 data->wlist = new_wlist; in dapm_kcontrol_add_widget() 662 list_for_each_entry_from(w, wlist, list) { in dapm_wcache_lookup() 1740 struct snd_soc_dapm_widget_list *wlist; in dapm_widget_update() local 1750 for_each_dapm_widgets(wlist, wi, w) { in dapm_widget_update() [all …]
|