summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-10-30 12:06:28 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2015-11-09 09:59:32 +0000
commit37fcee5d1154b7a03c13582e128bcc31ad43e954 (patch)
treef911442fcedb9116ad498daa0e9529eb936feb6f /include/block
parent5ceb9e39284b69d2e1b01da3cb1894ad4b2b4606 (diff)
downloadhqemu-37fcee5d1154b7a03c13582e128bcc31ad43e954.zip
hqemu-37fcee5d1154b7a03c13582e128bcc31ad43e954.tar.gz
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')
-rw-r--r--include/block/aio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/block/aio.h b/include/block/aio.h
index cab7c76..9ffecf7 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
OpenPOWER on IntegriCloud