1 .\" $NetBSD: lio_listio.3,v 1.1 2007/05/04 22:37:36 rmind Exp $
3 .\" Copyright (c) 2003 Tim J. Robbins
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" $FreeBSD: /repoman/r/ncvs/src/lib/libc/sys/lio_listio.2,v 1.6 2006/10/07 05:13:32 trhodes Exp $
34 .Nd list directed I/O (REALTIME)
42 .Fa "struct aiocb * const list[]"
44 .Fa "struct sigevent *sig"
49 function initiates a list of I/O requests with a single function call.
52 argument is an array of pointers to
54 structures describing each operation to perform,
65 specifies the operation to be performed.
66 The following operations are supported:
67 .Bl -tag -width ".Dv LIO_WRITE"
69 Read data as if by a call to
74 Write data as if by a call to
83 does not return until all the requested operations have been completed.
88 the requests are processed asynchronously, and the signal specified by
90 is sent when all operations have completed.
95 the calling process is not notified of I/O completion.
97 The order in which the requests are carried out is not specified,
98 and there is no guarantee that they will be executed sequentially.
106 function returns 0 if the operations completed successfully,
115 function returns 0 if the operations are successfully queued,
120 function will fail if:
123 There are not enough resources to enqueue the requests.
125 The request would cause the system-wide limit
129 A signal interrupted the system call before it could be completed.
142 One or more requests failed.
147 function may fail for any of the reasons listed for
154 succeeds, or fails with an error code of
158 some of the requests may have been initiated.
159 The caller should check the error status of each
161 structure individually by calling
173 function is expected to conform to