aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorThomas Munro <tmunro@FreeBSD.org>2021-08-22 09:48:59 +0000
committerThomas Munro <tmunro@FreeBSD.org>2021-08-22 11:00:42 +0000
commitf30a1ae8d5290a52e898279bafc38556bf16bed8 (patch)
tree3d838dc7e0628b1152a33ab74f2009ac6423e7a6 /lib/libc
parent98399ab06f6c6adbd795266bc8a45e3f804ac6f8 (diff)
downloadsrc-f30a1ae8d5290a52e898279bafc38556bf16bed8.tar.gz
src-f30a1ae8d5290a52e898279bafc38556bf16bed8.zip
lio_listio(2): Allow LIO_READV and LIO_WRITEV.
Allow multiple vector IOs to be started with one system call. aio_readv() and aio_writev() already used these opcodes under the covers. This commit makes them available to user space. Being non-standard extensions, they're only visible if __BSD_VISIBLE is defined, like the functions. Reviewed by: asomers, kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D31627
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/lio_listio.216
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/libc/sys/lio_listio.2 b/lib/libc/sys/lio_listio.2
index 0e04e7c88338..ef1b1add3376 100644
--- a/lib/libc/sys/lio_listio.2
+++ b/lib/libc/sys/lio_listio.2
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 7, 2019
+.Dd August 22, 2021
.Dt LIO_LISTIO 2
.Os
.Sh NAME
@@ -66,11 +66,17 @@ The following operations are supported:
.It Dv LIO_READ
Read data as if by a call to
.Xr aio_read 2 .
+.It Dv LIO_READV
+Read data as if by a call to
+.Xr aio_readv 2 .
.It Dv LIO_NOP
No operation.
.It Dv LIO_WRITE
Write data as if by a call to
.Xr aio_write 2 .
+.It Dv LIO_WRITEV
+Write data as if by a call to
+.Xr aio_writev 2 .
.El
.Pp
If the
@@ -205,7 +211,9 @@ structure individually by calling
.Sh SEE ALSO
.Xr aio_error 2 ,
.Xr aio_read 2 ,
+.Xr aio_readv 2 ,
.Xr aio_write 2 ,
+.Xr aio_writev 2 ,
.Xr read 2 ,
.Xr write 2 ,
.Xr sigevent 3 ,
@@ -216,6 +224,12 @@ The
.Fn lio_listio
function is expected to conform to
.St -p1003.1-2001 .
+The
+.Dv LIO_READV
+and
+.Dv LIO_WRITEV
+operations are
+.Fx extensions, and should not be used in portable code.
.Sh HISTORY
The
.Fn lio_listio