mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-01 07:21:09 +00:00
2292b33986
event notifiers are slightly generalized eventfd descriptors. Current implementation depends on eventfd because vhost is the only user, and vhost depends on eventfd anyway, but a stub is provided for non-eventfd case. We'll be able to further generalize this when another user comes along and we see how to best do this. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
17 lines
369 B
C
17 lines
369 B
C
#ifndef QEMU_EVENT_NOTIFIER_H
|
|
#define QEMU_EVENT_NOTIFIER_H
|
|
|
|
#include "qemu-common.h"
|
|
|
|
struct EventNotifier {
|
|
int fd;
|
|
};
|
|
|
|
int event_notifier_init(EventNotifier *, int active);
|
|
void event_notifier_cleanup(EventNotifier *);
|
|
int event_notifier_get_fd(EventNotifier *);
|
|
int event_notifier_test_and_clear(EventNotifier *);
|
|
int event_notifier_test(EventNotifier *);
|
|
|
|
#endif
|