[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 16/39] aio: change qemu_aio_set_fd_handler to ret
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH v2 16/39] aio: change qemu_aio_set_fd_handler to return void |
Date: |
Wed, 31 Oct 2012 16:30:33 +0100 |
Reviewed-by: Anthony Liguori <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
aio.c | 12 +++++-------
qemu-aio.h | 10 +++++-----
2 file modificati, 10 inserzioni(+), 12 rimozioni(-)
diff --git a/aio.c b/aio.c
index c738a4e..e062aab 100644
--- a/aio.c
+++ b/aio.c
@@ -53,11 +53,11 @@ static AioHandler *find_aio_handler(int fd)
return NULL;
}
-int qemu_aio_set_fd_handler(int fd,
- IOHandler *io_read,
- IOHandler *io_write,
- AioFlushHandler *io_flush,
- void *opaque)
+void qemu_aio_set_fd_handler(int fd,
+ IOHandler *io_read,
+ IOHandler *io_write,
+ AioFlushHandler *io_flush,
+ void *opaque)
{
AioHandler *node;
@@ -93,8 +93,6 @@ int qemu_aio_set_fd_handler(int fd,
}
qemu_set_fd_handler2(fd, NULL, io_read, io_write, opaque);
-
- return 0;
}
void qemu_aio_flush(void)
diff --git a/qemu-aio.h b/qemu-aio.h
index bfdd35f..27a7e21 100644
--- a/qemu-aio.h
+++ b/qemu-aio.h
@@ -60,10 +60,10 @@ bool qemu_aio_wait(void);
* Code that invokes AIO completion functions should rely on this function
* instead of qemu_set_fd_handler[2].
*/
-int qemu_aio_set_fd_handler(int fd,
- IOHandler *io_read,
- IOHandler *io_write,
- AioFlushHandler *io_flush,
- void *opaque);
+void qemu_aio_set_fd_handler(int fd,
+ IOHandler *io_read,
+ IOHandler *io_write,
+ AioFlushHandler *io_flush,
+ void *opaque);
#endif
--
1.7.12.1
- [Qemu-devel] [PATCH v2 34/39] block: switch posix-aio-compat to threadpool, (continued)
- [Qemu-devel] [PATCH v2 34/39] block: switch posix-aio-compat to threadpool, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 35/39] raw: merge posix-aio-compat.c into block/raw-posix.c, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 36/39] raw-posix: rename raw-posix-aio.h, hide unavailable prototypes, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 37/39] raw-win32: add emulated AIO support, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 30/39] linux-aio: use event notifiers, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 14/39] event_notifier: enable it to use pipes, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 15/39] vl: init main loop earlier, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 31/39] qemu-thread: add QemuSemaphore, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 13/39] event_notifier: add Win32 implementation, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 28/39] main-loop: use aio_notify for qemu_notify_event, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 16/39] aio: change qemu_aio_set_fd_handler to return void,
Paolo Bonzini <=
- [Qemu-devel] [PATCH v2 26/39] aio: call aio_notify after setting I/O handlers, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 19/39] aio: add I/O handlers to the AioContext interface, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 39/39] raw-win32: implement native asynchronous I/O, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 38/39] raw-posix: move linux-aio.c to block/, Paolo Bonzini, 2012/10/31
- [Qemu-devel] [PATCH v2 18/39] aio: introduce AioContext, move bottom halves there, Paolo Bonzini, 2012/10/31