fcntl.2: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-08-26 02:58:02 +02:00
parent 580082a186
commit c542a59fed
1 changed files with 9 additions and 4 deletions

View File

@ -1493,12 +1493,15 @@ Furthermore, if there are any asynchronous I/O operations
.RB ( io_submit (2))
pending on the file,
all outstanding writes will be discarded.
.\"
.SS File read/write hints
Write life time hints can be used to inform the kernel about the relative
expected life time of writes on a given inode or file. An application may
expected life time of writes on a given inode or file.
An application may
use this interface for separating writes into different write classes,
so that multiple users or applications running on a single storage back-end
can aggregate their IO patterns in a consistent manner. However, there are
can aggregate their IO patterns in a consistent manner.
However, there are
no functional semantics implied by these flags, and different IO classes
can use the write life time hints in arbitrary ways so long as they are used
consistently.
@ -1518,11 +1521,13 @@ Returns the value of the read/write hint associated with the file descriptor.
Sets the read/write hint value associated with the file descriptor.
.P
If a given file descriptor has not been assigned a read/write hint, then it
shall use the value assigned to the inode, if any. The following read/write
shall use the value assigned to the inode, if any.
The following read/write
hints are valid since kernel 4.13:
.TP
.BR RWH_WRITE_LIFE_NOT_SET
No specific hint has been set. This is the default value.
No specific hint has been set.
This is the default value.
.TP
.BR RWH_WRITE_LIFE_NONE
No specific write life time is associated with this file or inode.