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
32 .Nd "list directed I/O (REALTIME)"
40 .Fa "struct aiocb * const list[]"
42 .Fa "struct sigevent *sig"
47 function initiates a list of I/O requests with a single function call.
50 argument is an array of pointers to
52 structures describing each operation to perform,
63 specifies the operation to be performed.
64 The following operations are supported:
65 .Bl -tag -width ".Dv LIO_WRITE"
67 Read data as if by a call to
70 Read data as if by a call to
75 Write data as if by a call to
78 Write data as if by a call to
87 does not return until all the requested operations have been completed.
93 can be used to request asynchronous notification when all operations have
99 no notification is sent.
104 the posted kevent will contain:
105 .Bl -column ".Va filter"
106 .It Sy Member Ta Sy Value
107 .It Va ident Ta Fa list
108 .It Va filter Ta Dv EVFILT_LIO
119 the information for the queued signal will include
123 field and the value stored in
135 .Fa sig->sigev_notify_function
139 The order in which the requests are carried out is not specified;
140 in particular, there is no guarantee that they will be executed in
150 function returns 0 if the operations completed successfully,
159 function returns 0 if the operations are successfully queued,
164 function will fail if:
167 There are not enough resources to enqueue the requests.
169 The request would cause the system-wide limit
182 .Dv {AIO_LISTIO_MAX} .
184 The asynchronous notification method in
185 .Fa sig->sigev_notify
186 is invalid or not supported.
188 A signal interrupted the system call before it could be completed.
190 One or more requests failed.
195 function may fail for any of the reasons listed for
202 succeeds, or fails with an error code of
206 some of the requests may have been initiated.
207 The caller should check the error status of each
209 structure individually by calling
225 function is expected to conform to
232 .Fx extensions, and should not be used in portable code.
236 system call first appeared in