diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-02-25 13:21:20 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-02-25 13:21:20 +0100 |
commit | ad78d8c22487b63843de148524fdd1e8a25a4dfd (patch) | |
tree | f6b1e074a5987e7e390cca7d2b1d9157bd4ba695 /man2 | |
parent | 28628d82666104195eaf4491eb626e3fcc9bb2c9 (diff) |
process_madvise.2: Rename parameter, and use array syntax
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man2')
-rw-r--r-- | man2/process_madvise.2 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/man2/process_madvise.2 b/man2/process_madvise.2 index ed8739663..2d91924ca 100644 --- a/man2/process_madvise.2 +++ b/man2/process_madvise.2 @@ -15,8 +15,8 @@ Standard C library .nf .B #include <sys/mman.h> .P -.BI "ssize_t process_madvise(int " pidfd ", const struct iovec *" iovec , -.BI " size_t " vlen ", int " advice \ +.BI "ssize_t process_madvise(int " pidfd ", const struct iovec " iovec [. n ], +.BI " size_t " n ", int " advice \ ", unsigned int " flags ); .fi .SH DESCRIPTION @@ -27,7 +27,7 @@ address ranges of another process or of the calling process. It provides the advice for the address ranges described by .I iovec and -.IR vlen . +.IR n . The goal of such advice is to improve system or application performance. .P The @@ -43,7 +43,7 @@ points to an array of structures, described in .BR iovec (3type). .P -.I vlen +.I n specifies the number of elements in the array of .I iovec structures. @@ -80,12 +80,12 @@ argument is reserved for future use; currently, this argument must be specified as 0. .P The -.I vlen +.I n and .I iovec arguments are checked before applying any advice. If -.I vlen +.I n is too big, or .I iovec is invalid, @@ -152,7 +152,7 @@ overflows a value. .TP .B EINVAL -.I vlen +.I n is too large. .TP .B ENOMEM |