Home
last modified time | relevance | path

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

12345678910

/openbmc/linux/kernel/
H A Daudit_watch.c111 kfree(watch); in audit_put_watch()
125 return watch->path; in audit_watch_path()
164 watch = kzalloc(sizeof(*watch), GFP_KERNEL); in audit_init_watch()
170 watch->path = path; in audit_init_watch()
174 return watch; in audit_init_watch()
193 if (IS_ERR(watch)) in audit_to_watch()
196 krule->watch = watch; in audit_to_watch()
368 struct audit_watch *w, *watch = krule->watch; in audit_add_to_parent() local
383 krule->watch = watch = w; in audit_add_to_parent()
402 struct audit_watch *watch = krule->watch; in audit_add_watch() local
[all …]
H A Dwatch_queue.c201 struct watch *watch; in __post_watch_notification() local
416 struct watch *watch = container_of(rcu, struct watch, rcu); in free_watch() local
421 kfree(watch); in free_watch()
426 struct watch *watch = container_of(kref, struct watch, usage); in __put_watch() local
434 static void put_watch(struct watch *watch) in put_watch() argument
446 void init_watch(struct watch *watch, struct watch_queue *wqueue) in init_watch() argument
457 struct watch *w; in add_one_watch()
528 struct watch *watch; in remove_watch_from_object() local
553 n.watch.info = watch->info_id | watch_sizeof(n.watch); in remove_watch_from_object()
556 n.watch.info = watch->info_id | watch_sizeof(n); in remove_watch_from_object()
[all …]
/openbmc/linux/drivers/xen/xenbus/
H A Dxenbus_dev_frontend.c235 kfree(watch->watch.node); in free_watch_adapter()
237 kfree(watch); in free_watch_adapter()
245 watch = kzalloc(sizeof(*watch), GFP_KERNEL); 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()
277 adap = container_of(watch, struct watch_adapter, watch); in watch_fired()
327 unregister_xenbus_watch(&watch->watch); in xenbus_worker()
521 watch->watch.callback = watch_fired; in xenbus_write_watch()
524 err = register_xenbus_watch(&watch->watch); in xenbus_write_watch()
534 !strcmp(watch->watch.node, path)) { in xenbus_write_watch()
[all …]
H A Dxenbus_xs.c767 char token[sizeof(watch) * 2 + 1]; in register_xenbus_watch()
772 watch->nr_pending = 0; in register_xenbus_watch()
778 list_add(&watch->list, &watches); in register_xenbus_watch()
785 list_del(&watch->list); in register_xenbus_watch()
798 char token[sizeof(watch) * 2 + 1]; in unregister_xenbus_watch()
807 list_del(&watch->list); in unregister_xenbus_watch()
823 if (watch->nr_pending) { in unregister_xenbus_watch()
825 if (event->handle != watch) in unregister_xenbus_watch()
830 watch->nr_pending = 0; in unregister_xenbus_watch()
849 struct xenbus_watch *watch; in xs_resume() local
[all …]
/openbmc/phosphor-dbus-monitor/src/
H A Dmain.cpp38 for (auto& watch : ConfigPropertyWatches::get()) in main() local
40 watch->start(); in main()
43 for (auto& watch : ConfigPropertyWatches::get()) in main() local
45 watch->callback(Context::START); in main()
47 for (auto& watch : ConfigPathWatches::get()) in main() local
49 watch->start(); in main()
52 for (auto& watch : ConfigPathWatches::get()) in main() local
54 watch->callback(Context::START); in main()
/openbmc/qemu/util/
H A Dfilemonitor-inotify.c145 if (watch->filename == NULL || in qemu_file_monitor_watch()
149 watch->opaque, watch->id); in qemu_file_monitor_watch()
150 watch->cb(watch->id, qev, name, watch->opaque); in qemu_file_monitor_watch()
169 g_free(watch->filename); in qemu_file_monitor_dir_free()
259 QFileMonitorWatch watch; in qemu_file_monitor_add_watch() local
290 watch.filename = g_strdup(filename); in qemu_file_monitor_add_watch()
291 watch.cb = cb; in qemu_file_monitor_add_watch()
292 watch.opaque = opaque; in qemu_file_monitor_add_watch()
300 ret = watch.id; in qemu_file_monitor_add_watch()
327 if (watch->id == id) { in qemu_file_monitor_remove_watch()
[all …]
/openbmc/linux/Documentation/core-api/
H A Dwatch_queue.rst102 watch that specific key).
128 a watch. These can be managed with:
145 A "watch" is a subscription on a watch list, indicating the watch queue, and
150 struct watch {
163 the associated watch queue buffer.
173 * ``void init_watch(struct watch *watch, struct watch_queue *wqueue);``
175 Initialise a watch object, setting its pointer to the watch queue, using
178 * ``int add_watch_to_object(struct watch *watch, struct watch_list *wlist);``
180 Subscribe a watch to a watch list (notification source). The
190 Remove a watch from a watch list, where the watch must match the specified
[all …]
/openbmc/qemu/hw/char/
H A Dvirtio-console.c34 guint watch; member
46 vcon->watch = 0; in chr_write_unblocked()
100 if (!vcon->watch) { in flush_buf()
162 if (vcon->watch) { in chr_event()
163 g_source_remove(vcon->watch); in chr_event()
164 vcon->watch = 0; in chr_event()
190 if (vcon->watch) { in chr_be_change()
191 g_source_remove(vcon->watch); in chr_be_change()
192 vcon->watch = qemu_chr_fe_add_watch(&vcon->chr, in chr_be_change()
259 if (vcon->watch) { in virtconsole_unrealize()
[all …]
/openbmc/phosphor-dbus-monitor/src/test/yaml/propertywatchgentest/
H A Dwatchtwo.yaml35 - name: test property watch 1
36 class: watch
37 watch: property
41 - name: test property watch 3
42 class: watch
43 watch: property
H A Dwatchone.yaml51 - name: test property watch 1
52 class: watch
53 watch: property
57 - name: test property watch 2
58 class: watch
59 watch: property
/openbmc/phosphor-dbus-monitor/src/example/
H A Dtest.yaml101 class: watch
102 watch: property
107 class: watch
108 watch: property
113 class: watch
119 class: watch
125 class: watch
131 class: watch
137 class: watch
143 class: watch
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/events-policy/
H A Dconfig.yaml35 - name: watch occproctemp
36 class: watch
37 watch: property
42 - name: watch occprocpower
43 class: watch
44 watch: property
49 - name: watch occmemtemp
50 class: watch
51 watch: property
/openbmc/linux/drivers/counter/
H A Dcounter-chrdev.c139 struct counter_watch *const watch, in counter_set_event_node() argument
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()
282 parent = watch.component.parent; in counter_add_watch()
285 switch (watch.component.scope) { in counter_add_watch()
314 id = watch.component.id; in counter_add_watch()
317 switch (watch.component.type) { in counter_add_watch()
645 ev.watch.event = event; in counter_push_event()
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/fan-policy/swift/
H A Dfan-errors.yaml122 class: watch
131 class: watch
140 class: watch
149 class: watch
158 class: watch
167 class: watch
176 class: watch
185 class: watch
194 class: watch
203 class: watch
[all …]
H A Dwater-cooled.yaml84 - name: watch fan present
87 class: watch
88 watch: property
96 class: watch
97 watch: property
102 - name: watch chassis state
105 class: watch
106 watch: property
111 - name: watch cooling type
114 class: watch
[all …]
H A Dair-cooled.yaml84 - name: watch fan present
87 class: watch
88 watch: property
96 class: watch
97 watch: property
102 - name: watch chassis state
105 class: watch
106 watch: property
111 - name: watch cooling type
114 class: watch
[all …]
/openbmc/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
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/fan-policy/witherspoon/
H A Dfan-errors.yaml123 class: watch
132 class: watch
141 class: watch
150 class: watch
159 class: watch
168 class: watch
177 class: watch
186 class: watch
195 class: watch
204 class: watch
[all …]
H A Dwater-cooled.yaml103 - name: watch fan present
106 class: watch
107 watch: property
115 class: watch
116 watch: property
124 class: watch
125 watch: property
133 class: watch
134 watch: property
142 class: watch
[all …]
H A Dair-cooled.yaml109 - name: watch fan present
112 class: watch
113 watch: property
121 class: watch
122 watch: property
130 class: watch
131 watch: property
139 class: watch
140 watch: property
148 class: watch
[all …]
/openbmc/qemu/ui/
H A Dspice-core.c93 int fd = watch->fd; in watch_read()
98 watch->func(fd, SPICE_WATCH_EVENT_READ, watch->opaque); in watch_read()
104 int fd = watch->fd; in watch_write()
109 watch->func(fd, SPICE_WATCH_EVENT_WRITE, watch->opaque); in watch_write()
123 qemu_set_fd_handler(watch->fd, on_read, on_write, watch); in watch_update_mask()
128 SpiceWatch *watch; in watch_add() local
138 watch = g_malloc0(sizeof(*watch)); in watch_add()
139 watch->fd = fd; in watch_add()
140 watch->func = func; in watch_add()
144 return watch; in watch_add()
[all …]
/openbmc/qemu/qga/
H A Dchannel-win32.c39 GAWatch *watch = (GAWatch *)source; in ga_channel_prepare() local
40 GAChannel *c = (GAChannel *)watch->channel; in ga_channel_prepare()
96 GAWatch *watch = (GAWatch *)source; in ga_channel_check() local
97 GAChannel *c = (GAChannel *)watch->channel; in ga_channel_check()
154 GAWatch *watch = (GAWatch *)source; in ga_channel_dispatch() local
155 GAChannel *c = (GAChannel *)watch->channel; in ga_channel_dispatch()
160 success = c->cb(watch->pollfd.revents, c->user_data); in ga_channel_dispatch()
192 GAWatch *watch = (GAWatch *)source; in ga_channel_create_watch() local
194 watch->channel = c; in ga_channel_create_watch()
195 watch->pollfd.fd = (gintptr) c->rstate.ov.hEvent; in ga_channel_create_watch()
[all …]
/openbmc/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
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/power-supply-policy/
H A Dpower-supply-policy.yaml61 - name: watch power supply present
64 class: watch
65 watch: property
70 - name: watch chassis state
73 class: watch
74 watch: property
199 - name: watch power supply0 present for resolving error logs
202 class: watch
203 watch: property
211 class: watch
[all …]
/openbmc/openbmc/meta-quanta/meta-s6q/recipes-phosphor/dbus/chassis-intrusion-monitor/
H A Dconfig.yaml17 - name: watch intrusionenable
18 class: watch
19 watch: property
24 - name: watch intrusiondisable
25 class: watch
26 watch: property

12345678910