block.h (5d2318499fe980542fbc21d9ccbc127a6106017b) block.h (53a7d041858a6787a43012fd04ccf0258389a95d)
1#ifndef BLOCK_H
2#define BLOCK_H
3
4#include "block/aio.h"
5#include "qapi/qapi-types-block-core.h"
6#include "block/aio-wait.h"
7#include "qemu/iov.h"
8#include "qemu/coroutine.h"

--- 572 unchanged lines hidden (view full) ---

581 * bdrv_set_aio_context:
582 *
583 * Changes the #AioContext used for fd handlers, timers, and BHs by this
584 * BlockDriverState and all its children.
585 *
586 * This function must be called with iothread lock held.
587 */
588void bdrv_set_aio_context(BlockDriverState *bs, AioContext *new_context);
1#ifndef BLOCK_H
2#define BLOCK_H
3
4#include "block/aio.h"
5#include "qapi/qapi-types-block-core.h"
6#include "block/aio-wait.h"
7#include "qemu/iov.h"
8#include "qemu/coroutine.h"

--- 572 unchanged lines hidden (view full) ---

581 * bdrv_set_aio_context:
582 *
583 * Changes the #AioContext used for fd handlers, timers, and BHs by this
584 * BlockDriverState and all its children.
585 *
586 * This function must be called with iothread lock held.
587 */
588void bdrv_set_aio_context(BlockDriverState *bs, AioContext *new_context);
589void bdrv_set_aio_context_ignore(BlockDriverState *bs,
590 AioContext *new_context, GSList **ignore);
589int bdrv_try_set_aio_context(BlockDriverState *bs, AioContext *ctx,
590 Error **errp);
591int bdrv_child_try_set_aio_context(BlockDriverState *bs, AioContext *ctx,
592 BdrvChild *ignore_child, Error **errp);
593bool bdrv_child_can_set_aio_context(BdrvChild *c, AioContext *ctx,
594 GSList **ignore, Error **errp);
595bool bdrv_can_set_aio_context(BlockDriverState *bs, AioContext *ctx,
596 GSList **ignore, Error **errp);

--- 137 unchanged lines hidden ---
591int bdrv_try_set_aio_context(BlockDriverState *bs, AioContext *ctx,
592 Error **errp);
593int bdrv_child_try_set_aio_context(BlockDriverState *bs, AioContext *ctx,
594 BdrvChild *ignore_child, Error **errp);
595bool bdrv_child_can_set_aio_context(BdrvChild *c, AioContext *ctx,
596 GSList **ignore, Error **errp);
597bool bdrv_can_set_aio_context(BlockDriverState *bs, AioContext *ctx,
598 GSList **ignore, Error **errp);

--- 137 unchanged lines hidden ---