about summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-10-08 15:45:29 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-10-10 10:28:01 -0300
commit5ffc903216901914dc2ad9715088d3fe9d1ef205 (patch)
treeef919d5898dec5e09c3c9e2f93de73a772a19c85 /manual
parentfc650bfd71081d26c1015d299827fb58a23a6b02 (diff)
downloadglibc-5ffc903216901914dc2ad9715088d3fe9d1ef205.tar.gz
glibc-5ffc903216901914dc2ad9715088d3fe9d1ef205.tar.xz
glibc-5ffc903216901914dc2ad9715088d3fe9d1ef205.zip
misc: Add support for Linux uio.h RWF_ATOMIC flag
Linux 6.11 adds the new flag for pwritev2 (commit
c34fc6f26ab86d03a2d47446f42b6cd492dfdc56).

Checked on x86_64-linux-gnu on 6.11 kernel.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'manual')
-rw-r--r--manual/llio.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/manual/llio.texi b/manual/llio.texi
index 05ab44c6e7..0eb336f70b 100644
--- a/manual/llio.texi
+++ b/manual/llio.texi
@@ -1381,6 +1381,19 @@ Per-IO synchronization as if the file was opened with @code{O_APPEND} flag.
 @item RWF_NOAPPEND
 This flag allows an offset to be honored, even if the file was opened with
 @code{O_APPEND} flag.
+
+@item RWF_ATOMIC
+Indicate that the write is to be issued with torn-write prevention.  The
+input buffer should follow some contraints: the total length should be
+power-of-2 in size and also sizes between @code{atomic_write_unit_min}
+and @code{atomic_write_unit_max}, the @code{struct iovec} count should be
+up to @code{atomic_write_segments_max}, and the offset should be
+naturally-aligned with regard to total write length.
+
+The @code{atomic_*} values can be obtained with @code{statx} along with
+@code{STATX_WRITE_ATOMIC} flag.
+
+This is a Linux-specific extension.
 @end vtable
 
 When the source file is compiled with @code{_FILE_OFFSET_BITS == 64} the