io_queue_run(3)

io_queue_run3

Handle completed io requests

Usage

#include <errno.h>

#include <libaio.h>

int io_queue_run(io_context_t ctx);

Overview

io_queue_run() attempts to read all the events from the completion queue for the aio_context specified by ctx.

Return values

May return 0 if no events are available. Will fail with -ENOSYS if not implemented.

Errors

EFAULT

iocbs referenced data outside of the program's accessible address space.

EINVAL

ctx refers to an uninitialized aio context, the iocb pointed to by iocbs contains an improperly initialized iocb.

ENOSYS

Not implemented.

Releases

5 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10
  2. 11–Arch

From libaio 0.3.113-5 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.