void aio_context_setup(AioContext *ctx, Error **errp)

{

#ifdef CONFIG_EPOLL

    assert(!ctx->epollfd);

    ctx->epollfd = epoll_create1(EPOLL_CLOEXEC);

    if (ctx->epollfd == -1) {

        ctx->epoll_available = false;

    } else {

        ctx->epoll_available = true;

    }

#endif

}

void aio_context_setup(AioContext *ctx, Error **errp)

{

#ifdef CONFIG_EPOLL

    assert(!ctx->epollfd);

    ctx->epollfd = epoll_create1(EPOLL_CLOEXEC);

    if (ctx->epollfd == -1) {

        ctx->epoll_available = false;

    } else {

        ctx->epoll_available = true;

    }

#endif

}

#ifdef CONFIG_EPOLL #ifdef CONFIG_EPOLL #ifdef CONFIG_EPOLL
void FUNC_0(AioContext *VAR_0, Error **VAR_1)

{

#ifdef CONFIG_EPOLL

    assert(!VAR_0->epollfd);

    VAR_0->epollfd = epoll_create1(EPOLL_CLOEXEC);

    if (VAR_0->epollfd == -1) {

        VAR_0->epoll_available = false;

    } else {

        VAR_0->epoll_available = true;

    }

#endif

}

void FUNC_0(AioContext *VAR_0, Error **VAR_1)
{ #ifdef CONFIG_EPOLL
assert(!VAR_0->epollfd); VAR_0->epollfd = epoll_create1(EPOLL_CLOEXEC); if (VAR_0->epollfd == -1) { VAR_0->epoll_available = false; } else { VAR_0->epoll_available = true; } #endif
}