aio.h (58e2e17dba49b43f4ac9de19468aeae1c787dcc2) aio.h (cd0a6d2b2c3d5cbf82a868d8c6c80961bcda6db5)
1/*
2 * QEMU aio implementation
3 *
4 * Copyright IBM, Corp. 2008
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *

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

550 * aio_context_setup:
551 * @ctx: the aio context
552 *
553 * Initialize the aio context.
554 */
555void aio_context_setup(AioContext *ctx);
556
557/**
1/*
2 * QEMU aio implementation
3 *
4 * Copyright IBM, Corp. 2008
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *

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

550 * aio_context_setup:
551 * @ctx: the aio context
552 *
553 * Initialize the aio context.
554 */
555void aio_context_setup(AioContext *ctx);
556
557/**
558 * aio_context_destroy:
559 * @ctx: the aio context
560 *
561 * Destroy the aio context.
562 */
563void aio_context_destroy(AioContext *ctx);
564
565/**
558 * aio_context_set_poll_params:
559 * @ctx: the aio context
560 * @max_ns: how long to busy poll for, in nanoseconds
561 * @grow: polling time growth factor
562 * @shrink: polling time shrink factor
563 *
564 * Poll mode can be disabled by setting poll_max_ns to 0.
565 */
566void aio_context_set_poll_params(AioContext *ctx, int64_t max_ns,
567 int64_t grow, int64_t shrink,
568 Error **errp);
569
570#endif
566 * aio_context_set_poll_params:
567 * @ctx: the aio context
568 * @max_ns: how long to busy poll for, in nanoseconds
569 * @grow: polling time growth factor
570 * @shrink: polling time shrink factor
571 *
572 * Poll mode can be disabled by setting poll_max_ns to 0.
573 */
574void aio_context_set_poll_params(AioContext *ctx, int64_t max_ns,
575 int64_t grow, int64_t shrink,
576 Error **errp);
577
578#endif