Home
last modified time | relevance | path

Searched refs:watch (Results 1 – 25 of 80) sorted by relevance

1234

/linux/kernel/
H A Daudit_watch.c100 void audit_get_watch(struct audit_watch *watch) in audit_get_watch() argument
102 refcount_inc(&watch->count); in audit_get_watch()
105 void audit_put_watch(struct audit_watch *watch) in audit_put_watch() argument
107 if (refcount_dec_and_test(&watch->count)) { in audit_put_watch()
108 WARN_ON(watch->parent); in audit_put_watch()
109 WARN_ON(!list_empty(&watch->rules)); in audit_put_watch()
110 kfree(watch->path); in audit_put_watch()
111 kfree(watch); in audit_put_watch()
115 static void audit_remove_watch(struct audit_watch *watch) in audit_remove_watch() argument
117 list_del(&watch->wlist); in audit_remove_watch()
[all …]
H A Dwatch_queue.c200 struct watch *watch; in __post_watch_notification() local
209 hlist_for_each_entry_rcu(watch, &wlist->watchers, list_node) { in __post_watch_notification()
210 if (watch->id != id) in __post_watch_notification()
213 n->info |= watch->info_id; in __post_watch_notification()
215 wqueue = rcu_dereference(watch->queue); in __post_watch_notification()
220 if (security_post_notification(watch->cred, cred, n) < 0) in __post_watch_notification()
424 struct watch *watch = container_of(rcu, struct watch, rcu); in free_watch() local
426 put_watch_queue(rcu_access_pointer(watch->queue)); in free_watch()
427 atomic_dec(&watch->cred->user->nr_watches); in free_watch()
428 put_cred(watch->cred); in free_watch()
[all …]
H A Dauditfilter.c89 if (erule->watch) in audit_free_rule()
90 audit_put_watch(erule->watch); in audit_free_rule()
158 krule->inode_f || krule->watch || krule->tree || in audit_to_inode()
671 audit_watch_path(krule->watch)); in audit_krule_to_data()
736 if (strcmp(audit_watch_path(a->watch), in audit_compare_rule()
737 audit_watch_path(b->watch))) in audit_compare_rule()
890 if (old->watch) { in audit_dupe_rule()
891 audit_get_watch(old->watch); in audit_dupe_rule()
892 new->watch = old->watch; in audit_dupe_rule()
910 } else if (entry->rule.watch) { in audit_find_rule()
[all …]
H A Daudit.h273 extern void audit_put_watch(struct audit_watch *watch);
274 extern void audit_get_watch(struct audit_watch *watch);
279 extern char *audit_watch_path(struct audit_watch *watch);
280 extern int audit_watch_compare(struct audit_watch *watch, unsigned long ino,
/linux/drivers/xen/xenbus/
H A Dxenbus_dev_frontend.c228 struct xenbus_watch watch; member
233 static void free_watch_adapter(struct watch_adapter *watch) in free_watch_adapter() argument
235 kfree(watch->watch.node); in free_watch_adapter()
236 kfree(watch->token); in free_watch_adapter()
237 kfree(watch); in free_watch_adapter()
243 struct watch_adapter *watch; in alloc_watch_adapter() local
245 watch = kzalloc_obj(*watch); in alloc_watch_adapter()
246 if (watch == NULL) in alloc_watch_adapter()
249 watch->watch.node = kstrdup(path, GFP_KERNEL); in alloc_watch_adapter()
250 if (watch->watch.node == NULL) in alloc_watch_adapter()
[all …]
H A Dxenbus_xs.c732 int register_xenbus_watch(struct xenbus_watch *watch) in register_xenbus_watch() argument
735 char token[sizeof(watch) * 2 + 1]; in register_xenbus_watch()
738 sprintf(token, "%lX", (long)watch); in register_xenbus_watch()
740 watch->nr_pending = 0; in register_xenbus_watch()
746 list_add(&watch->list, &watches); in register_xenbus_watch()
749 err = xs_watch(watch->node, token); in register_xenbus_watch()
753 list_del(&watch->list); in register_xenbus_watch()
763 void unregister_xenbus_watch(struct xenbus_watch *watch) in unregister_xenbus_watch() argument
766 char token[sizeof(watch) * 2 + 1]; in unregister_xenbus_watch()
769 sprintf(token, "%lX", (long)watch); in unregister_xenbus_watch()
[all …]
H A Dxenbus_probe_backend.c183 static bool frontend_will_handle(struct xenbus_watch *watch, in frontend_will_handle() argument
186 return watch->nr_pending == 0; in frontend_will_handle()
189 static void frontend_changed(struct xenbus_watch *watch, in frontend_changed() argument
192 xenbus_otherend_changed(watch, path, token, 0); in frontend_changed()
212 static void backend_changed(struct xenbus_watch *watch, in backend_changed() argument
H A Dxenbus_client.c132 struct xenbus_watch *watch, in xenbus_watch_path() argument
140 watch->node = path; in xenbus_watch_path()
141 watch->will_handle = will_handle; in xenbus_watch_path()
142 watch->callback = callback; in xenbus_watch_path()
144 err = register_xenbus_watch(watch); in xenbus_watch_path()
147 watch->node = NULL; in xenbus_watch_path()
148 watch->will_handle = NULL; in xenbus_watch_path()
149 watch->callback = NULL; in xenbus_watch_path()
178 struct xenbus_watch *watch, in xenbus_watch_pathfmt() argument
197 err = xenbus_watch_path(dev, path, watch, will_handle, callback); in xenbus_watch_pathfmt()
H A Dxenbus_comms.c212 struct xs_watch_event *watch; in process_msg() member
262 len += sizeof(*state.watch); in process_msg()
269 state.body = state.watch->body; in process_msg()
287 state.watch->len = state.msg.len; in process_msg()
288 err = xs_watch_msg(state.watch); in process_msg()
/linux/Documentation/core-api/
H A Dwatch_queue.rst33 watch through that pipe. Only sources that have been connected to a pipe will
65 internally by the watch queue itself. There are two subtypes:
70 The first indicates that an object on which a watch was installed was removed
79 * The watch ID (mask with WATCH_INFO_ID and shift by WATCH_INFO_ID__SHIFT).
80 This indicates that caller's ID of the watch, which may be between 0
97 A "watch list" is a list of watchers that are subscribed to a source of
100 non-global watch list is typically referred to by reference to the object it
102 watch that specific key).
104 To manage a watch list, the following functions are provided:
109 void (*release_watch)(struct watch *wlist));
[all …]
/linux/drivers/counter/
H A Dcounter-chrdev.c139 struct counter_watch *const watch, in counter_set_event_node() argument
148 if (event_node->event == watch->event && in counter_set_event_node()
149 event_node->channel == watch->channel) in counter_set_event_node()
160 event_node->event = watch->event; in counter_set_event_node()
161 event_node->channel = watch->channel; in counter_set_event_node()
268 struct counter_watch watch; in counter_add_watch() local
276 if (copy_from_user(&watch, uwatch, sizeof(watch))) in counter_add_watch()
279 if (watch.component.type == COUNTER_COMPONENT_NONE) in counter_add_watch()
282 parent = watch.component.parent; in counter_add_watch()
285 switch (watch.component.scope) { in counter_add_watch()
[all …]
H A Dmicrochip-tcb-capture.c341 const struct counter_watch *watch) in mchp_tc_watch_validate() argument
343 if (watch->channel == COUNTER_MCHP_EVCHN_CV || watch->channel == COUNTER_MCHP_EVCHN_RA) in mchp_tc_watch_validate()
344 switch (watch->event) { in mchp_tc_watch_validate()
353 if (watch->channel == COUNTER_MCHP_EVCHN_RB && watch->event == COUNTER_EVENT_CAPTURE) in mchp_tc_watch_validate()
356 if (watch->channel == COUNTER_MCHP_EVCHN_RC && watch->event == COUNTER_EVENT_THRESHOLD) in mchp_tc_watch_validate()
H A Dinterrupt-cnt.c150 const struct counter_watch *watch) in interrupt_cnt_watch_validate() argument
152 if (watch->channel != 0 || in interrupt_cnt_watch_validate()
153 watch->event != COUNTER_EVENT_CHANGE_OF_STATE) in interrupt_cnt_watch_validate()
/linux/Documentation/translations/zh_CN/core-api/
H A Dwatch_queue.rst105 void (*release_watch)(struct watch *wlist));
135 对象还可以携带该对象的过滤规则,由用户空间设置。watch结构体的某些部分可以由驱动程
138 struct watch {
159 * ``void init_watch(struct watch *watch, struct watch_queue *wqueue);``
163 * ``int add_watch_to_object(struct watch *watch, struct watch_list *wlist);``
165 将观测订阅到观测列表(通知源)。watch结构体中的driver-settable字段必须在调用
251 (watch.info & info_mask) == info_filter
/linux/include/linux/
H A Dwatch_queue.h54 struct watch { struct
75 void (*release_watch)(struct watch *); argument
85 extern void init_watch(struct watch *, struct watch_queue *);
86 extern int add_watch_to_object(struct watch *, struct watch_list *);
95 void (*release_watch)(struct watch *)) in init_watch_list() argument
/linux/Documentation/userspace-api/gpio/
H A Dgpio-get-lineinfo-watch-ioctl.rst11 gpio-v2-get-lineinfo-watch-ioctl.rst.
34 the ``offset`` set to indicate the line to watch
55 Multiple lines may be watched simultaneously by adding a watch for each.
57 Once a watch is set, any changes to line info will generate events which can be
61 Adding a watch to a line that is already watched is an error (**EBUSY**).
H A Dgpio-get-lineinfo-unwatch-ioctl.rst29 The offset of the line to no longer watch.
36 This is the reverse of gpio-v2-get-lineinfo-watch-ioctl.rst (v2) and
37 gpio-get-lineinfo-watch-ioctl.rst (v1).
H A Dgpio-v2-get-lineinfo-watch-ioctl.rst30 the ``offset`` set to indicate the line to watch
50 Multiple lines may be watched simultaneously by adding a watch for each.
52 Once a watch is set, any changes to line info will generate events which can be
56 Adding a watch to a line that is already watched is an error (**EBUSY**).
/linux/tools/gpio/
H A DMakefile21 ALL_TARGETS := lsgpio gpio-hammer gpio-event-mon gpio-watch
72 GPIO_WATCH_IN := $(OUTPUT)gpio-watch-in.o
74 $(Q)$(MAKE) $(build)=gpio-watch
75 $(OUTPUT)gpio-watch: $(GPIO_WATCH_IN)
H A DBuild5 gpio-watch-y += gpio-watch.o
/linux/include/xen/
H A Dxenbus.h187 int register_xenbus_watch(struct xenbus_watch *watch);
188 void unregister_xenbus_watch(struct xenbus_watch *watch);
206 struct xenbus_watch *watch,
212 int xenbus_watch_pathfmt(struct xenbus_device *dev, struct xenbus_watch *watch,
/linux/Documentation/filesystems/
H A Dinotify.rst18 What is the design decision behind not tying the watch to the open fd of
30 an fd-per-watch?
33 An fd-per-watch quickly consumes more file descriptors than are allowed,
37 A watch consumes less memory than an open file, separating the number
47 fd returns all watch events and also any potential out-of-band data. If
48 every fd was a separate watch,
/linux/include/uapi/linux/
H A Dwatch_queue.h75 struct watch_notification watch; member
99 struct watch_notification watch; member
/linux/security/keys/
H A Dinternal.h184 .watch.type = WATCH_TYPE_KEY_NOTIFY, in notify_key()
185 .watch.subtype = subtype, in notify_key()
186 .watch.info = watch_sizeof(n), in notify_key()
191 post_watch_notification(key->watchers, &n.watch, current_cred(), in notify_key()
/linux/Documentation/gpu/
H A Dintroduction.rst155 * `An Overview of the Linux and Userspace Graphics Stack <https://www.youtube.com/watch?v=wjAJmqwg4…
156 …en on Linux: introduction to Kernel Mode Setting <https://www.youtube.com/watch?v=haes4_Xnc5Q>`_ -…
157 * `Everything Great about Upstream Graphics <https://www.youtube.com/watch?v=kVzHOgt6WGE>`_ - Simon…
158 * `An introduction to the Linux DRM subsystem <https://www.youtube.com/watch?v=LbDOCJcDRoo>`_ - Max…
159 * `Embrace the Atomic (Display) Age <https://www.youtube.com/watch?v=LjiB_JeDn2M>`_ - Simona Vetter…
160 * `Anatomy of an Atomic KMS Driver <https://www.youtube.com/watch?v=lihqR9sENpc>`_ - Laurent Pincha…
161 * `Atomic Modesetting for Drivers <https://www.youtube.com/watch?v=kl9suFgbTc8>`_ - Simona Vetter (…
162 * `Anatomy of an Embedded KMS Driver <https://www.youtube.com/watch?v=Ja8fM7rTae4>`_ - Laurent Pinc…

1234