diff options
author | Fam Zheng | 2015-10-30 05:06:28 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2015-11-09 10:59:32 +0100 |
commit | 37fcee5d1154b7a03c13582e128bcc31ad43e954 (patch) | |
tree | f911442fcedb9116ad498daa0e9529eb936feb6f /include/block/aio.h | |
parent | aio: Introduce aio_external_disabled (diff) | |
download | qemu-37fcee5d1154b7a03c13582e128bcc31ad43e954.tar.gz qemu-37fcee5d1154b7a03c13582e128bcc31ad43e954.tar.xz qemu-37fcee5d1154b7a03c13582e128bcc31ad43e954.zip |
aio: Introduce aio_context_setup
This is the place to initialize platform specific bits of AioContext.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1446177989-6702-3-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/block/aio.h')
-rw-r--r-- | include/block/aio.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/block/aio.h b/include/block/aio.h index cab7c765e3..9ffecf7977 100644 --- a/include/block/aio.h +++ b/include/block/aio.h @@ -429,4 +429,12 @@ static inline bool aio_node_check(AioContext *ctx, bool is_external) return !is_external || !atomic_read(&ctx->external_disable_cnt); } +/** + * aio_context_setup: + * @ctx: the aio context + * + * Initialize the aio context. + */ +void aio_context_setup(AioContext *ctx, Error **errp); + #endif |