Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Dwatch_queue.h62 struct watch_list __rcu *watch_list; member
73 struct watch_list { struct
80 extern void __post_watch_notification(struct watch_list *, argument
87 extern int add_watch_to_object(struct watch *, struct watch_list *);
88 extern int remove_watch_from_object(struct watch_list *, struct watch_queue *, u64, bool);
95 static inline void init_watch_list(struct watch_list *wlist, in init_watch_list()
103 static inline void post_watch_notification(struct watch_list *wlist, in post_watch_notification()
112 static inline void remove_watch_list(struct watch_list *wlist, u64 id) in remove_watch_list()
Dkey.h203 struct watch_list *watchers; /* Entities watching this key for changes */
/linux-6.1.9/Documentation/translations/zh_CN/core-api/
Dwatch_queue.rst104 void init_watch_list(struct watch_list *wlist,
107 初始化一个观测列表。 如果 ``release_watch`` 不是NULL,那么这表示当watch_list
110 * ``void remove_watch_list(struct watch_list *wlist);``
112 这将删除订阅watch_list的所有观测,并释放它们,然后销毁watch_list对象本身。
152 ``private`` 字段是与watch_list相关联的驱动程序数据,并由 ``watch_list::release_watch()``
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.1.9/kernel/
Dwatch_queue.c198 void __post_watch_notification(struct watch_list *wlist, in __post_watch_notification()
457 static int add_one_watch(struct watch *watch, struct watch_list *wlist, struct watch_queue *wqueue) in add_one_watch()
475 rcu_assign_pointer(watch->watch_list, wlist); in add_one_watch()
496 int add_watch_to_object(struct watch *watch, struct watch_list *wlist) in add_watch_to_object()
526 int remove_watch_from_object(struct watch_list *wlist, struct watch_queue *wq, in remove_watch_from_object()
549 rcu_assign_pointer(watch->watch_list, NULL); in remove_watch_from_object()
599 struct watch_list *wlist; in watch_queue_clear()
620 wlist = rcu_dereference(watch->watch_list); in watch_queue_clear()
629 rcu_assign_pointer(watch->watch_list, NULL); in watch_queue_clear()
/linux-6.1.9/Documentation/core-api/
Dwatch_queue.rst108 void init_watch_list(struct watch_list *wlist,
112 indicates a function that should be called when the watch_list object is
116 * ``void remove_watch_list(struct watch_list *wlist);``
118 This removes all of the watches subscribed to a watch_list and frees them
119 and then destroys the watch_list object itself.
165 The ``private`` field is the driver's data associated with the watch_list and
166 is cleaned up by the ``watch_list::release_watch()`` method.
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);``
[all …]
/linux-6.1.9/security/keys/
Dkeyctl.c1771 struct watch_list *wlist = NULL; in keyctl_watch_key()