mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
5ceb9e3928
commit
37fcee5d11
4 changed files with 27 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue