1 .\" Copyright (c) 2003 Tim J. Robbins
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .Nd "list directed I/O (REALTIME)"
38 .Fa "struct aiocb * const list[]"
40 .Fa "struct sigevent *sig"
45 function initiates a list of I/O requests with a single function call.
48 argument is an array of pointers to
50 structures describing each operation to perform,
61 specifies the operation to be performed.
62 The following operations are supported:
63 .Bl -tag -width ".Dv LIO_WRITE"
65 Read data as if by a call to
68 Read data as if by a call to
73 Write data as if by a call to
76 Write data as if by a call to
85 does not return until all the requested operations have been completed.
91 can be used to request asynchronous notification when all operations have
97 no notification is sent.
102 the posted kevent will contain:
103 .Bl -column ".Va filter"
104 .It Sy Member Ta Sy Value
105 .It Va ident Ta Fa list
106 .It Va filter Ta Dv EVFILT_LIO
117 the information for the queued signal will include
121 field and the value stored in
133 .Fa sig->sigev_notify_function
137 The order in which the requests are carried out is not specified;
138 in particular, there is no guarantee that they will be executed in
148 function returns 0 if the operations completed successfully,
157 function returns 0 if the operations are successfully queued,
162 function will fail if:
165 There are not enough resources to enqueue the requests.
167 The request would cause the system-wide limit
180 .Dv {AIO_LISTIO_MAX} .
182 The asynchronous notification method in
183 .Fa sig->sigev_notify
184 is invalid or not supported.
186 A signal interrupted the system call before it could be completed.
188 One or more requests failed.
193 function may fail for any of the reasons listed for
200 succeeds, or fails with an error code of
204 some of the requests may have been initiated.
205 The caller should check the error status of each
207 structure individually by calling
223 function is expected to conform to
230 .Fx extensions, and should not be used in portable code.
234 system call first appeared in