Revision 8febfa26 qemu-aio.h
b/qemu-aio.h | ||
---|---|---|
20 | 20 |
/* Returns 1 if there are still outstanding AIO requests; 0 otherwise */ |
21 | 21 |
typedef int (AioFlushHandler)(void *opaque); |
22 | 22 |
|
23 |
/* Runs all currently allowed AIO callbacks of completed requests in the |
|
24 |
* respective AIO backend. Returns 0 if no requests was handled, non-zero |
|
25 |
* if at least one queued request was handled. */ |
|
26 |
typedef int (AioProcessQueue)(void *opaque); |
|
27 |
|
|
23 | 28 |
/* Flush any pending AIO operation. This function will block until all |
24 | 29 |
* outstanding AIO operations have been completed or cancelled. */ |
25 | 30 |
void qemu_aio_flush(void); |
... | ... | |
30 | 35 |
* result of executing I/O completion or bh callbacks. */ |
31 | 36 |
void qemu_aio_wait(void); |
32 | 37 |
|
38 |
/* |
|
39 |
* Runs all currently allowed AIO callbacks of completed requests. Returns 0 |
|
40 |
* if no requests were handled, non-zero if at least one request was |
|
41 |
* processed. |
|
42 |
*/ |
|
43 |
int qemu_aio_process_queue(void); |
|
44 |
|
|
33 | 45 |
/* Register a file descriptor and associated callbacks. Behaves very similarly |
34 | 46 |
* to qemu_set_fd_handler2. Unlike qemu_set_fd_handler2, these callbacks will |
35 | 47 |
* be invoked when using either qemu_aio_wait() or qemu_aio_flush(). |
... | ... | |
41 | 53 |
IOHandler *io_read, |
42 | 54 |
IOHandler *io_write, |
43 | 55 |
AioFlushHandler *io_flush, |
56 |
AioProcessQueue *io_process_queue, |
|
44 | 57 |
void *opaque); |
45 | 58 |
|
46 | 59 |
#endif |
Also available in: Unified diff