Home
last modified time | relevance | path

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

1234567891011

/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 …]
/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/i386/
H A Dx86-iommu.c33 IEC_Notifier *notifier = g_new0(IEC_Notifier, 1); in x86_iommu_iec_register_notifier() local
35 notifier->iec_notify = fn; in x86_iommu_iec_register_notifier()
36 notifier->private = data; in x86_iommu_iec_register_notifier()
38 QLIST_INSERT_HEAD(&iommu->iec_notifiers, notifier, list); in x86_iommu_iec_register_notifier()
44 IEC_Notifier *notifier; in x86_iommu_iec_notify_all() local
48 QLIST_FOREACH(notifier, &iommu->iec_notifiers, list) { in x86_iommu_iec_notify_all()
49 if (notifier->iec_notify) { in x86_iommu_iec_notify_all()
50 notifier->iec_notify(notifier->private, global, in x86_iommu_iec_notify_all()
/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.c31 static void io_read(EventNotifier *notifier) in io_read() argument
33 event_notifier_test_and_clear(notifier); in io_read()
46 static void io_poll_ready(EventNotifier *notifier) in io_poll_ready() argument
48 TestData *td = container_of(notifier, TestData, poll_notifier); in io_poll_ready()
63 static void io_poll_never_ready(EventNotifier *notifier) in io_poll_never_ready() argument
85 /* Make the event notifier active (set) right away */ in test()
90 /* This event notifier will be used later */ in test()
/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/accel/tcg/
H A Dtcg-accel-ops-mttcg.c39 Notifier notifier; member
47 static void mttcg_force_rcu(Notifier *notify, void *data) in mttcg_force_rcu()
49 CPUState *cpu = container_of(notify, MttcgForceRcuNotifier, notifier)->cpu; in mttcg_force_rcu()
73 force_rcu.notifier.notify = mttcg_force_rcu; in mttcg_cpu_thread_fn()
75 rcu_add_force_rcu_notifier(&force_rcu.notifier); in mttcg_cpu_thread_fn()
121 rcu_remove_force_rcu_notifier(&force_rcu.notifier); in mttcg_cpu_thread_fn()
/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);
H A Dsystem.h19 void qemu_add_exit_notifier(Notifier *notify);
20 void qemu_remove_exit_notifier(Notifier *notify);
22 void qemu_add_machine_init_done_notifier(Notifier *notify);
23 void qemu_remove_machine_init_done_notifier(Notifier *notify);
/openbmc/qemu/hw/vfio/
H A Dap.c148 EventNotifier *notifier; in vfio_ap_register_irq_notifier() local
154 notifier = &vapdev->req_notifier; in vfio_ap_register_irq_notifier()
158 notifier = &vapdev->cfg_notifier; in vfio_ap_register_irq_notifier()
184 if (event_notifier_init(notifier, 0)) { in vfio_ap_register_irq_notifier()
186 "vfio: Unable to init event notifier for irq (%d)", in vfio_ap_register_irq_notifier()
191 fd = event_notifier_get_fd(notifier); in vfio_ap_register_irq_notifier()
197 event_notifier_cleanup(notifier); in vfio_ap_register_irq_notifier()
207 EventNotifier *notifier; in vfio_ap_unregister_irq_notifier() local
211 notifier = &vapdev->req_notifier; in vfio_ap_unregister_irq_notifier()
214 notifier = &vapdev->cfg_notifier; in vfio_ap_unregister_irq_notifier()
[all …]
/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()
/openbmc/qemu/hw/virtio/
H A Dvirtio-bus.c234 /* Only set our notifier if we have ownership. */ in virtio_bus_start_ioeventfd()
255 /* Only remove our notifier if we have ownership. */ in virtio_bus_stop_ioeventfd()
282 EventNotifier *notifier = virtio_queue_get_host_notifier(vq); in virtio_bus_set_host_notifier() local
290 r = event_notifier_init(notifier, 1); in virtio_bus_set_host_notifier()
292 error_report("%s: unable to init event notifier: %s (%d)", in virtio_bus_set_host_notifier()
296 r = k->ioeventfd_assign(proxy, notifier, n, true); in virtio_bus_set_host_notifier()
302 k->ioeventfd_assign(proxy, notifier, n, false); in virtio_bus_set_host_notifier()
316 EventNotifier *notifier = virtio_queue_get_host_notifier(vq); in virtio_bus_cleanup_host_notifier() local
318 /* Test and clear notifier after disabling event, in virtio_bus_cleanup_host_notifier()
321 virtio_queue_host_notifier_read(notifier); in virtio_bus_cleanup_host_notifier()
[all …]
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()
/openbmc/qemu/include/hw/pci/
H A Dpci.h338 PCIINTxRoutingNotifier notifier);
403 typedef void (*IOMMUPRINotify)(struct IOMMUPRINotifier *notifier,
479 * @init_iotlb_notifier: initialize an IOMMU notifier.
489 * @n: the notifier to be initialized.
499 * @register_iotlb_notifier: setup an IOTLB invalidation notifier.
511 * @n: the notifier to register.
516 * @unregister_iotlb_notifier: remove an IOTLB invalidation notifier.
528 * @n: the notifier to unregister.
586 * @notifier: the notifier to register.
589 uint32_t pasid, IOMMUPRINotifier *notifier);
[all …]
/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()

1234567891011