| 1 |
.\" Copyright, the authors of the Linux man-pages project |
| 2 |
.\" |
| 3 |
.\" SPDX-License-Identifier: GPL-3.0-or-later |
| 4 |
.\" |
| 5 |
.TH io_setup 3 2026-04-11 "Linux man-pages 6.18" |
| 6 |
.SH NAME |
| 7 |
io_setup \- create an asynchronous I/O context |
| 8 |
.SH LIBRARY |
| 9 |
Asynchronous I/O library |
| 10 |
.RI ( libaio ,\~ \-laio ) |
| 11 |
.SH SYNOPSIS |
| 12 |
.nf |
| 13 |
.B #include <libaio.h> |
| 14 |
.P |
| 15 |
.BI long\~io_setup(unsigned\~int\~ n ", io_context_t\~*" ctx_idp ); |
| 16 |
.fi |
| 17 |
.SH DESCRIPTION |
| 18 |
.BR io_setup () |
| 19 |
creates an asynchronous I/O context suitable for concurrently processing |
| 20 |
.I n |
| 21 |
operations. |
| 22 |
.SH RETURN VALUE |
| 23 |
On success, |
| 24 |
.BR io_setup () |
| 25 |
returns 0. |
| 26 |
On error, |
| 27 |
a negative error code is returned to indicate the error. |
| 28 |
.SH ERRORS |
| 29 |
See |
| 30 |
.BR io_setup (2). |
| 31 |
.SH STANDARDS |
| 32 |
libaio. |
| 33 |
.SH HISTORY |
| 34 |
libaio. |
| 35 |
.SH SEE ALSO |
| 36 |
.BR io_setup (2), |
| 37 |
.BR io (3), |
| 38 |
.BR aio (7) |