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
72 Write data as if by a call to
81 does not return until all the requested operations have been completed.
87 can be used to request asynchronous notification when all operations have
93 no notification is sent.
98 the posted kevent will contain:
99 .Bl -column ".Va filter"
100 .It Sy Member Ta Sy Value
101 .It Va ident Ta Fa list
102 .It Va filter Ta Dv EVFILT_LIO
113 the information for the queued signal will include
117 field and the value stored in
129 .Fa sig->sigev_notify_function
133 The order in which the requests are carried out is not specified;
134 in particular, there is no guarantee that they will be executed in
144 function returns 0 if the operations completed successfully,
153 function returns 0 if the operations are successfully queued,
158 function will fail if:
161 There are not enough resources to enqueue the requests.
163 The request would cause the system-wide limit
176 .Dv {AIO_LISTIO_MAX} .
178 The asynchronous notification method in
179 .Fa sig->sigev_notify
180 is invalid or not supported.
182 A signal interrupted the system call before it could be completed.
184 One or more requests failed.
189 function may fail for any of the reasons listed for
196 succeeds, or fails with an error code of
200 some of the requests may have been initiated.
201 The caller should check the error status of each
203 structure individually by calling
217 function is expected to conform to
222 system call first appeared in