1
.TH io_submit 2 2002-09-02 "Linux 2.4" "Linux AIO"
3
io_submit \- submit io requests
9
.BI "int io_submit(io_context_t " ctx ", long " nr ", struct iocb *" iocbs "[]);"
12
submits to the io_context
16
I/O requests pointed to by the vector
21
structure is defined as something like
36
is a an opaque pointer which will upon completion be returned in the
41
Callers will typically use this to point directly or indirectly to a
45
is the I/O operation requested. Callers will typically set this and the
46
arguments to the I/O operation calling the
48
function corresponding to the operation.
51
is the priority of the request. Higher values have more priority; the
55
is the file descriptor for the I/O operation.
56
Callers will typically set this and the
57
arguments to the I/O operation calling the
59
function corresponding to the operation.
61
The caller may not modify the contents or resubmit a submitted
63
structure until after the operation completes or is canceled.
66
is permitted to modify reserved fields of the
70
If able to submit at least one iocb,
72
returns the number of iocbs submitted successfully. Otherwise,
76
is one of the Exxx values defined in the Errors section.
81
referenced data outside of the program's accessible address space.
87
refers to an uninitialized aio context, the iocb pointed to by
89
is improperly initialized or specifies an unsupported operation.
92
The iocb pointed to by
94
contains a file descriptor that does not exist.
97
Insufficient resources were available to queue any operations.
101
.BR io_getevents (2),
103
.BR io_prep_pread (3),
104
.BR io_prep_pwrite (3),
105
.BR io_prep_fsync (3),
106
.BR io_prep_fdsync (3),
107
.BR io_prep_noop (3),