summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorStefan Hajnoczi2016-12-01 20:26:41 +0100
committerStefan Hajnoczi2017-01-03 17:38:48 +0100
commitf6a51c84cdc97e0178aab7690788d3891d2fcf0a (patch)
treea3006871b448d1041d7a2716895070f1bb6afa17 /util
parentaio: add flag to skip fds to aio_dispatch() (diff)
downloadqemu-f6a51c84cdc97e0178aab7690788d3891d2fcf0a.tar.gz
qemu-f6a51c84cdc97e0178aab7690788d3891d2fcf0a.tar.xz
qemu-f6a51c84cdc97e0178aab7690788d3891d2fcf0a.zip
aio: add AioPollFn and io_poll() interface
The new AioPollFn io_poll() argument to aio_set_fd_handler() and aio_set_event_handler() is used in the next patch. Keep this code change separate due to the number of files it touches. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 20161201192652.9509-3-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/event_notifier-posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/event_notifier-posix.c b/util/event_notifier-posix.c
index c1f0d79b34..f2aacfc8b3 100644
--- a/util/event_notifier-posix.c
+++ b/util/event_notifier-posix.c
@@ -95,7 +95,7 @@ int event_notifier_set_handler(EventNotifier *e,
EventNotifierHandler *handler)
{
aio_set_fd_handler(iohandler_get_aio_context(), e->rfd, is_external,
- (IOHandler *)handler, NULL, e);
+ (IOHandler *)handler, NULL, NULL, e);
return 0;
}