diff options
author | jhb <jhb@FreeBSD.org> | 2016-08-22 17:52:10 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-08-22 17:52:10 +0000 |
commit | 0cf4441e5a3fd2282077580f60b2165bd1035488 (patch) | |
tree | 58f398f21b6f7f7edbc77a268e5452ebc7e72cca /lib/libc/sys/aio_fsync.2 | |
parent | 55525d64d63bd8233dc487b5e2999236a2c71ee9 (diff) | |
download | FreeBSD-src-0cf4441e5a3fd2282077580f60b2165bd1035488.zip FreeBSD-src-0cf4441e5a3fd2282077580f60b2165bd1035488.tar.gz |
MFC 304476: Fix various nits in the aio operation manpages.
- Avoid double use of "request" in a single sentence. Instead, describe
aio_sigevent as being used to request notification of the associated
operation's completion. This matches the language used to describe
aio_sigevent in aio(4).
- Simplify the prohibition on modifying buffers while requests are in
flight.
- Fix case mismatch.
- Drop note about not using stack variables. C programmers should be able
to figure out if a stack variable is safe based on the later warning
about the life cycle requirements of control blocks.
- Remove prohibition on modifying the I/O buffer for aio_fsync() since
it does not use an I/O buffer. For aio_mlock(), prohibit modifications
to the mapping (e.g. due to mprotect, munmap, mmap, etc.) but do not
prohibit modifications to the memory backing the buffer (stores into
the pages backing the buffer).
Diffstat (limited to 'lib/libc/sys/aio_fsync.2')
-rw-r--r-- | lib/libc/sys/aio_fsync.2 | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/libc/sys/aio_fsync.2 b/lib/libc/sys/aio_fsync.2 index 52b47efb..9d5d143 100644 --- a/lib/libc/sys/aio_fsync.2 +++ b/lib/libc/sys/aio_fsync.2 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 21, 2016 +.Dd August 19, 2016 .Dt AIO_FSYNC 2 .Os .Sh NAME @@ -74,16 +74,14 @@ the call returns without having enqueued the request. .Pp The .Fa iocb->aio_sigevent -structure can be used to request notification of the request's +structure can be used to request notification of the operation's completion as described in .Xr aio 4 . .Sh RESTRICTIONS -The asynchronous I/O Control Block structure pointed to by +The Asynchronous I/O Control Block structure pointed to by .Fa iocb must remain valid until the operation has completed. -For this reason, use of auto (stack) variables -for these objects is discouraged. .Pp The asynchronous I/O control buffer .Fa iocb @@ -91,9 +89,8 @@ should be zeroed before the .Fn aio_fsync call to avoid passing bogus context information to the kernel. .Pp -Modifications of the Asynchronous I/O Control Block structure or the -buffer contents after the request has been enqueued, but before the -request has completed, are not allowed. +Modification of the Asynchronous I/O Control Block structure is not allowed +while the request is queued. .Sh RETURN VALUES .Rv -std aio_fsync .Sh ERRORS |