Home
last modified time | relevance | path

Searched refs:watchers (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-6.6/include/linux/
H A Dwatch_queue.h62 struct hlist_node list_node; /* Link in watch_list->watchers */
74 struct hlist_head watchers; member
97 INIT_HLIST_HEAD(&wlist->watchers); in init_watch_list()
H A Dkey.h203 struct watch_list *watchers; /* Entities watching this key for changes */ member
/kernel/linux/linux-5.10/include/linux/
H A Dwatch_queue.h63 struct hlist_node list_node; /* Link in watch_list->watchers */
75 struct hlist_head watchers; member
98 INIT_HLIST_HEAD(&wlist->watchers); in init_watch_list()
H A Dkey.h197 struct watch_list *watchers; /* Entities watching this key for changes */ member
/kernel/linux/linux-5.10/kernel/
H A Dwatch_queue.c214 hlist_for_each_entry_rcu(watch, &wlist->watchers, list_node) { in __post_watch_notification()
466 hlist_for_each_entry(w, &wlist->watchers, list_node) { in add_one_watch()
484 hlist_add_head_rcu(&watch->list_node, &wlist->watchers); in add_one_watch()
542 hlist_for_each_entry(watch, &wlist->watchers, list_node) { in remove_watch_from_object()
588 if (all && !hlist_empty(&wlist->watchers)) in remove_watch_from_object()
/kernel/linux/linux-6.6/kernel/
H A Dwatch_queue.c210 hlist_for_each_entry_rcu(watch, &wlist->watchers, list_node) { in __post_watch_notification()
459 hlist_for_each_entry(w, &wlist->watchers, list_node) { in add_one_watch()
477 hlist_add_head_rcu(&watch->list_node, &wlist->watchers); in add_one_watch()
535 hlist_for_each_entry(watch, &wlist->watchers, list_node) { in remove_watch_from_object()
581 if (all && !hlist_empty(&wlist->watchers)) in remove_watch_from_object()
/kernel/linux/linux-5.10/security/keys/
H A Dgc.c148 remove_watch_list(key->watchers, key->serial); in key_gc_unused_keys()
149 key->watchers = NULL; in key_gc_unused_keys()
H A Dkeyctl.c1798 if (!key->watchers) { in keyctl_watch_key()
1818 if (!key->watchers) { in keyctl_watch_key()
1819 key->watchers = wlist; in keyctl_watch_key()
1823 ret = add_watch_to_object(watch, key->watchers); in keyctl_watch_key()
1830 if (key->watchers) { in keyctl_watch_key()
1832 ret = remove_watch_from_object(key->watchers, in keyctl_watch_key()
H A Dinternal.h200 post_watch_notification(key->watchers, &n.watch, current_cred(), in notify_key()
/kernel/linux/linux-6.6/security/keys/
H A Dgc.c148 remove_watch_list(key->watchers, key->serial); in key_gc_unused_keys()
149 key->watchers = NULL; in key_gc_unused_keys()
H A Dkeyctl.c1798 if (!key->watchers) { in keyctl_watch_key()
1818 if (!key->watchers) { in keyctl_watch_key()
1819 key->watchers = wlist; in keyctl_watch_key()
1823 ret = add_watch_to_object(watch, key->watchers); in keyctl_watch_key()
1830 if (key->watchers) { in keyctl_watch_key()
1832 ret = remove_watch_from_object(key->watchers, in keyctl_watch_key()
H A Dinternal.h198 post_watch_notification(key->watchers, &n.watch, current_cred(), in notify_key()
/kernel/linux/linux-5.10/include/linux/ceph/
H A Dosd_client.h563 struct ceph_watch_item **watchers,
/kernel/linux/linux-6.6/include/linux/ceph/
H A Dosd_client.h633 struct ceph_watch_item **watchers,
/kernel/linux/linux-5.10/net/ceph/
H A Dosd_client.c4976 struct ceph_watch_item **watchers, in decode_watchers()
4990 *watchers = kcalloc(*num_watchers, sizeof(**watchers), GFP_NOIO); in decode_watchers()
4991 if (!*watchers) in decode_watchers()
4995 ret = decode_watcher(p, end, *watchers + i); in decode_watchers()
4997 kfree(*watchers); in decode_watchers()
5008 * kfree(watchers);
5013 struct ceph_watch_item **watchers, in ceph_osdc_list_watchers()
5049 ret = decode_watchers(&p, end, watchers, num_watchers); in ceph_osdc_list_watchers()
4975 decode_watchers(void **p, void *end, struct ceph_watch_item **watchers, u32 *num_watchers) decode_watchers() argument
5010 ceph_osdc_list_watchers(struct ceph_osd_client *osdc, struct ceph_object_id *oid, struct ceph_object_locator *oloc, struct ceph_watch_item **watchers, u32 *num_watchers) ceph_osdc_list_watchers() argument
/kernel/linux/linux-6.6/net/ceph/
H A Dosd_client.c5068 struct ceph_watch_item **watchers, in decode_watchers()
5082 *watchers = kcalloc(*num_watchers, sizeof(**watchers), GFP_NOIO); in decode_watchers()
5083 if (!*watchers) in decode_watchers()
5087 ret = decode_watcher(p, end, *watchers + i); in decode_watchers()
5089 kfree(*watchers); in decode_watchers()
5100 * kfree(watchers);
5105 struct ceph_watch_item **watchers, in ceph_osdc_list_watchers()
5141 ret = decode_watchers(&p, end, watchers, num_watchers); in ceph_osdc_list_watchers()
5067 decode_watchers(void **p, void *end, struct ceph_watch_item **watchers, u32 *num_watchers) decode_watchers() argument
5102 ceph_osdc_list_watchers(struct ceph_osd_client *osdc, struct ceph_object_id *oid, struct ceph_object_locator *oloc, struct ceph_watch_item **watchers, u32 *num_watchers) ceph_osdc_list_watchers() argument
/kernel/linux/linux-5.10/drivers/block/
H A Drbd.c3999 struct ceph_watch_item *watchers; in find_watcher() local
4006 &rbd_dev->header_oloc, &watchers, in find_watcher()
4009 rbd_warn(rbd_dev, "failed to get watchers: %d", ret); in find_watcher()
4019 if (ceph_addr_equal_no_type(&watchers[i].addr, in find_watcher()
4021 watchers[i].cookie == cookie) { in find_watcher()
4023 .gid = le64_to_cpu(watchers[i].name.num), in find_watcher()
4035 dout("%s rbd_dev %p no watchers\n", __func__, rbd_dev); in find_watcher()
4038 kfree(watchers); in find_watcher()
/kernel/linux/linux-6.6/drivers/block/
H A Drbd.c3943 struct ceph_watch_item *watchers; in find_watcher() local
3950 &rbd_dev->header_oloc, &watchers, in find_watcher()
3953 rbd_warn(rbd_dev, "failed to get watchers: %d", ret); in find_watcher()
3963 if (ceph_addr_equal_no_type(&watchers[i].addr, in find_watcher()
3965 watchers[i].cookie == cookie) { in find_watcher()
3967 .gid = le64_to_cpu(watchers[i].name.num), in find_watcher()
3979 dout("%s rbd_dev %p no watchers\n", __func__, rbd_dev); in find_watcher()
3982 kfree(watchers); in find_watcher()

Completed in 44 milliseconds