Home
last modified time | relevance | path

Searched full:notifier (Results 1 – 25 of 155) sorted by relevance

1234567

/openbmc/qemu/util/
H A Dnotify.c2 * Notifier lists
24 void notifier_list_add(NotifierList *list, Notifier *notifier) in notifier_list_add() argument
26 QLIST_INSERT_HEAD(&list->notifiers, notifier, node); in notifier_list_add()
29 void notifier_remove(Notifier *notifier) in notifier_remove() argument
31 QLIST_REMOVE(notifier, node); in notifier_remove()
36 Notifier *notifier, *next; in notifier_list_notify() local
38 QLIST_FOREACH_SAFE(notifier, &list->notifiers, node, next) { in notifier_list_notify()
39 notifier->notify(notifier, data); in notifier_list_notify()
54 NotifierWithReturn *notifier) in notifier_with_return_list_add() argument
56 QLIST_INSERT_HEAD(&list->notifiers, notifier, node); in notifier_with_return_list_add()
[all …]
H A Dqemu-coroutine.c68 QEMU_DEFINE_STATIC_CO_TLS(Notifier, local_pool_cleanup_notifier);
91 static void local_pool_cleanup(Notifier *n, void *value) in local_pool_cleanup()
103 /* Ensure the atexit notifier is registered */
106 Notifier *notifier = get_ptr_local_pool_cleanup_notifier(); in local_pool_cleanup_init_once() local
107 if (!notifier->notify) { in local_pool_cleanup_init_once()
108 notifier->notify = local_pool_cleanup; in local_pool_cleanup_init_once()
109 qemu_thread_atexit_add(notifier); in local_pool_cleanup_init_once()
/openbmc/qemu/include/qemu/
H A Dnotify.h2 * Notifier lists
19 typedef struct Notifier Notifier; typedef
21 struct Notifier struct
23 void (*notify)(Notifier *notifier, void *data); argument
24 QLIST_ENTRY(Notifier) node;
29 QLIST_HEAD(, Notifier) notifiers;
37 void notifier_list_add(NotifierList *list, Notifier *notifier);
39 void notifier_remove(Notifier *notifier);
45 /* Same as Notifier but allows .notify() to return errors */
49 typedef int (*NotifierWithReturnFunc)(NotifierWithReturn *notifier, void *data,
[all …]
H A Dthread.h220 struct Notifier;
223 * @notifier: Notifier to add
225 * Add the specified notifier to a list which will be run via
228 * The usual usage is that the caller passes a Notifier which is
235 void qemu_thread_atexit_add(struct Notifier *notifier);
238 * @notifier: Notifier to remove
240 * Remove the specified notifier from the thread-exit notification
241 * list. It is not valid to try to remove a notifier which is not
244 void qemu_thread_atexit_remove(struct Notifier *notifier);
/openbmc/phosphor-logging/test/openpower-pels/
H A Dhost_notifier_test.cpp147 HostNotifier notifier{repo, dataIface, std::move(hostIface)}; in TEST_F() local
153 EXPECT_TRUE(notifier.enqueueRequired(pel->id())); in TEST_F()
154 EXPECT_TRUE(notifier.notifyRequired(pel->id())); in TEST_F()
157 EXPECT_FALSE(notifier.enqueueRequired(42)); in TEST_F()
158 EXPECT_FALSE(notifier.notifyRequired(42)); in TEST_F()
164 EXPECT_FALSE(notifier.enqueueRequired(pel->id())); in TEST_F()
165 EXPECT_FALSE(notifier.notifyRequired(pel->id())); in TEST_F()
171 HostNotifier notifier{repo, dataIface, std::move(hostIface)}; in TEST_F() local
183 EXPECT_FALSE(notifier.enqueueRequired(pel->id())); in TEST_F()
190 HostNotifier notifier{repo, dataIface, std::move(hostIface)}; in TEST_F() local
[all …]
/openbmc/openbmc/meta-security/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify/
H A D0001-Make-asyncore-support-optional-for-Python-3.patch28 @@ -1494,33 +1493,40 @@ class ThreadedNotifier(threading.Thread, Notifier):
32 -class AsyncNotifier(asyncore.file_dispatcher, Notifier):
34 - This notifier inherits from asyncore.file_dispatcher in order to be able to
42 + class AsyncNotifier(asyncore.file_dispatcher, Notifier):
44 - Initializes the async notifier. The only additional parameter is
46 - Notifier class for the meaning of the others parameters.
47 + This notifier inherits from asyncore.file_dispatcher in order to be able to
51 - Notifier.__init__(self, watch_manager, default_proc_fun, read_freq,
57 + Initializes the async notifier. The only additional parameter is
59 + Notifier class for the meaning of the others parameters.
[all …]
/openbmc/qemu/block/
H A Dblock-ram-registrar.c15 BlockRAMRegistrar *r = container_of(n, BlockRAMRegistrar, notifier); in ram_block_added()
24 ram_block_notifier_remove(&r->notifier); in ram_block_added()
32 BlockRAMRegistrar *r = container_of(n, BlockRAMRegistrar, notifier); in ram_block_removed()
39 r->notifier = (RAMBlockNotifier){ in blk_ram_registrar_init()
50 ram_block_notifier_add(&r->notifier); in blk_ram_registrar_init()
56 ram_block_notifier_remove(&r->notifier); in blk_ram_registrar_destroy()
/openbmc/qemu/hw/s390x/
H A Dsclpquiesce.c82 Notifier notifier; member
86 static void quiesce_powerdown_req(Notifier *n, void *opaque) in quiesce_powerdown_req()
88 QuiesceNotifier *qn = container_of(n, QuiesceNotifier, notifier); in quiesce_powerdown_req()
100 qn.notifier.notify = quiesce_powerdown_req; in quiesce_init()
103 qemu_register_powerdown_notifier(&qn.notifier); in quiesce_init()
124 * Reason: This is just an internal device - the notifier should in quiesce_class_init()
/openbmc/qemu/tests/unit/
H A Dtest-nested-aio-poll.c32 static void io_read(EventNotifier *notifier) in io_read()
34 event_notifier_test_and_clear(notifier); in io_read()
47 static void io_poll_ready(EventNotifier *notifier) in io_poll_ready()
49 TestData *td = container_of(notifier, TestData, poll_notifier); in io_poll_ready()
64 static void io_poll_never_ready(EventNotifier *notifier) in io_poll_never_ready()
86 /* Make the event notifier active (set) right away */ in test()
91 /* This event notifier will be used later */ in test()
31 io_read(EventNotifier * notifier) io_read() argument
46 io_poll_ready(EventNotifier * notifier) io_poll_ready() argument
63 io_poll_never_ready(EventNotifier * notifier) io_poll_never_ready() argument
/openbmc/qemu/include/hw/timer/
H A Dsse-counter.h94 * @notifier: Notifier which is notified on counter changes
96 * Registers @notifier with the SSECounter. When the counter's
99 * sse_counter_tick_to_time(), the notifier will be called.
103 void sse_counter_register_consumer(SSECounter *counter, Notifier *notifier);
/openbmc/qemu/include/system/
H A Drunstate.h133 void qemu_register_suspend_notifier(Notifier *notifier);
137 void qemu_register_wakeup_notifier(Notifier *notifier);
143 void qemu_register_powerdown_notifier(Notifier *notifier);
144 void qemu_register_shutdown_notifier(Notifier *notifier);
/openbmc/qemu/hw/usb/
H A Du2f-emulated.c97 EventNotifier notifier; member
190 event_notifier_set(&key->notifier); in u2f_emulated_thread()
279 static void u2f_emulated_event_handler(EventNotifier *notifier) in u2f_emulated_event_handler() argument
281 U2FEmulatedState *key = container_of(notifier, U2FEmulatedState, notifier); in u2f_emulated_event_handler()
285 event_notifier_test_and_clear(&key->notifier); in u2f_emulated_event_handler()
325 if (event_notifier_init(&key->notifier, false) < 0) { in u2f_emulated_realize()
326 error_setg(errp, "%s: Failed to initialize notifier", in u2f_emulated_realize()
330 /* Notifier */ in u2f_emulated_realize()
331 event_notifier_set_handler(&key->notifier, u2f_emulated_event_handler); in u2f_emulated_realize()
355 /* Notifier */ in u2f_emulated_unrealize()
[all …]
/openbmc/qemu/hw/hyperv/
H A Dhyperv_testdev.c40 EventNotifier notifier; member
192 static void evt_conn_handler(EventNotifier *notifier) in evt_conn_handler() argument
194 TestEvtConn *conn = container_of(notifier, TestEvtConn, notifier); in evt_conn_handler()
196 event_notifier_test_and_clear(notifier); in evt_conn_handler()
215 assert(!event_notifier_init(&conn->notifier, false)); in evt_conn_create()
217 event_notifier_set_handler(&conn->notifier, evt_conn_handler); in evt_conn_create()
219 assert(!hyperv_set_event_flag_handler(conn_id, &conn->notifier)); in evt_conn_create()
232 event_notifier_set_handler(&conn->notifier, NULL); in evt_conn_destroy()
233 event_notifier_cleanup(&conn->notifier); in evt_conn_destroy()
H A Dhyperv.c333 static void sint_ack_handler(EventNotifier *notifier) in sint_ack_handler() argument
335 HvSintRoute *sint_route = container_of(notifier, HvSintRoute, in sint_ack_handler()
337 event_notifier_test_and_clear(notifier); in sint_ack_handler()
558 EventNotifier *notifier; member
645 static int set_event_flag_handler(uint32_t conn_id, EventNotifier *notifier) in set_event_flag_handler() argument
653 if (notifier) { in set_event_flag_handler()
664 if (notifier) { in set_event_flag_handler()
667 handler->notifier = notifier; in set_event_flag_handler()
679 int hyperv_set_event_flag_handler(uint32_t conn_id, EventNotifier *notifier) in hyperv_set_event_flag_handler() argument
692 .fd = notifier ? event_notifier_get_fd(notifier) : -1, in hyperv_set_event_flag_handler()
[all …]
/openbmc/qemu/hw/virtio/
H A Dvhost-shadow-virtqueue.h54 /* Shadow kick notifier, sent to vhost */
56 /* Shadow call notifier, sent to vhost */
60 * Borrowed virtqueue's guest to host notifier. To borrow it in this event
61 * notifier allows to recover the VhostShadowVirtqueue from the event loop
69 /* Guest's call notifier, where the SVQ calls guest. */
/openbmc/telemetry/src/
H A Dmetric.cpp92 void Metric::sensorUpdated(interfaces::Sensor& notifier, Milliseconds timestamp, in sensorUpdated() argument
95 auto& data = findAssociatedData(notifier); in sensorUpdated()
108 const interfaces::Sensor& notifier) in findAssociatedData() argument
112 [&notifier](const auto& sensor) { return sensor.get() == &notifier; }); in findAssociatedData()
/openbmc/qemu/ui/
H A Ddbus.h62 Notifier notifier; member
74 void dbus_display_notifier_add(Notifier *notifier);
H A Dgtk-clipboard.c123 static void gd_clipboard_notify(Notifier *notifier, void *data) in gd_clipboard_notify() argument
126 container_of(notifier, GtkDisplayState, cbpeer.notifier); in gd_clipboard_notify()
193 gd->cbpeer.notifier.notify = gd_clipboard_notify; in gd_clipboard_init()
H A Ddbus-chardev.c88 dbus_display_on_notify(Notifier *notifier, void *data) in dbus_display_on_notify() argument
90 DBusDisplay *dpy = container_of(notifier, DBusDisplay, notifier); in dbus_display_on_notify()
106 dpy->notifier.notify = dbus_display_on_notify; in dbus_chardev_init()
107 dbus_display_notifier_add(&dpy->notifier); in dbus_chardev_init()
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-mem.h144 void (*add_size_change_notifier)(VirtIOMEM *vmem, Notifier *notifier);
145 void (*remove_size_change_notifier)(VirtIOMEM *vmem, Notifier *notifier);
/openbmc/qemu/hw/core/
H A Dnuma.c823 RAMBlockNotifier *notifier = opaque; in ram_block_notify_add_single() local
826 notifier->ram_block_added(notifier, host, size, max_size); in ram_block_notify_add_single()
836 RAMBlockNotifier *notifier = opaque; in ram_block_notify_remove_single() local
839 notifier->ram_block_removed(notifier, host, size, max_size); in ram_block_notify_remove_single()
865 RAMBlockNotifier *notifier; in ram_block_notify_add() local
868 QLIST_FOREACH_SAFE(notifier, &ram_list.ramblock_notifiers, next, next) { in ram_block_notify_add()
869 if (notifier->ram_block_added) { in ram_block_notify_add()
870 notifier->ram_block_added(notifier, host, size, max_size); in ram_block_notify_add()
877 RAMBlockNotifier *notifier; in ram_block_notify_remove() local
880 QLIST_FOREACH_SAFE(notifier, &ram_list.ramblock_notifiers, next, next) { in ram_block_notify_remove()
[all …]
/openbmc/qemu/hw/xen/
H A Dxen-operations.c318 Notifier notifier; member
321 static void watch_notify(Notifier *n, void *data) in watch_notify()
323 struct qemu_xs_watch *w = container_of(n, struct qemu_xs_watch, notifier); in watch_notify()
343 w->notifier.notify = watch_notify; in new_watch()
362 notifier_list_add(&h->notifiers, &w->notifier); in libxenstore_watch()
365 notifier_remove(&w->notifier); in libxenstore_watch()
377 notifier_remove(&w->notifier); in libxenstore_unwatch()
/openbmc/qemu/include/hw/hyperv/
H A Dhyperv.h56 * Associate @notifier with the event connection @conn_id, such that @notifier
58 * If @notifier is NULL clear the association.
60 int hyperv_set_event_flag_handler(uint32_t conn_id, EventNotifier *notifier);
/openbmc/qemu/hw/vfio/
H A Dccw.c382 EventNotifier *notifier; in vfio_ccw_register_irq_notifier() local
387 notifier = &vcdev->io_notifier; in vfio_ccw_register_irq_notifier()
391 notifier = &vcdev->crw_notifier; in vfio_ccw_register_irq_notifier()
395 notifier = &vcdev->req_notifier; in vfio_ccw_register_irq_notifier()
421 if (event_notifier_init(notifier, 0)) { in vfio_ccw_register_irq_notifier()
423 "vfio: Unable to init event notifier for irq (%d)", in vfio_ccw_register_irq_notifier()
428 fd = event_notifier_get_fd(notifier); in vfio_ccw_register_irq_notifier()
434 event_notifier_cleanup(notifier); in vfio_ccw_register_irq_notifier()
444 EventNotifier *notifier; in vfio_ccw_unregister_irq_notifier() local
448 notifier = &vcdev->io_notifier; in vfio_ccw_unregister_irq_notifier()
[all …]
/openbmc/qemu/net/
H A Dcolo-compare.h21 void colo_compare_register_notifier(Notifier *notify);
22 void colo_compare_unregister_notifier(Notifier *notify);

1234567