io_setup(2) System Calls Manual io_setup(2) io_setup - / (libc -lc) #include #include /* SYS_* */ #include long syscall(SYS_io_setup, unsigned int n, aio_context_t *ctx_idp); : io_setup(3) libaio . io_setup() / n . ctx_idp AIO 0 . AIO *ctx_idp . io_setup() 0. -1 errno . EAGAIN n /proc/sys/fs/aio-max-nr ( proc_sys_fs(5)). EFAULT ctx_idp. EINVAL *ctx_idp 0. EINVAL n . n 0. ENOMEM . ENOSYS io_setup() . libaio . . . 2.5. io_cancel(2), io_destroy(2), io_getevents(2), io_submit(2), io_setup(3), aio(7) 3 . . : . 6.18 11 2026 io_setup(2)