diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-05-29 00:19:16 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-05-31 01:40:56 +0200 |
| commit | e68371f7325b1817194e826dd71f2c162afa422b (patch) | |
| tree | 070ea7c68de27e11566f3da4bc2775c88acef01c | |
| parent | 57cea436b5d51016541f6a766ba8902eb1010b36 (diff) | |
| download | man-pages-e68371f7325b1817194e826dd71f2c162afa422b.tar.gz | |
PR_SET_MM.2const, PR_SET_MM_BRK.2const: Split PR_SET_MM_BRK from PR_SET_MM(2const)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man2const/PR_SET_MM.2const | 22 | ||||
| -rw-r--r-- | man/man2const/PR_SET_MM_BRK.2const | 57 |
2 files changed, 60 insertions, 19 deletions
diff --git a/man/man2const/PR_SET_MM.2const b/man/man2const/PR_SET_MM.2const index 297066d1d4..dca14999e6 100644 --- a/man/man2const/PR_SET_MM.2const +++ b/man/man2const/PR_SET_MM.2const @@ -45,14 +45,8 @@ is one of the options below. .B PR_SET_MM_START_STACK .TQ .B PR_SET_MM_START_BRK -.TP +.TQ .B PR_SET_MM_BRK -Set the current -.BR brk (2) -value. -The requirements for the address are the same as for the -.B PR_SET_MM_START_BRK -option. .P The following options are available since Linux 3.5. .\" commit fe8c7f5cbf91124987106faa3bdf0c8b955c4cf7 @@ -188,17 +182,6 @@ is greater than .B TASK_SIZE (the limit on the size of the user address space for this architecture). .TP -.B EINVAL -.I op -is -.BR PR_SET_MM_BRK , -and -.I arg3 -is less than or equal to the end of the data segment -or specifies a value that would cause the -.B RLIMIT_DATA -resource limit to be exceeded. -.TP .B EPERM The caller does not have the .B CAP_SYS_RESOURCE @@ -221,4 +204,5 @@ option enabled. .BR PR_SET_MM_START_DATA (2const), .BR PR_SET_MM_END_DATA (2const), .BR PR_SET_MM_START_STACK (2const), -.BR PR_SET_MM_START_BRK (2const) +.BR PR_SET_MM_START_BRK (2const), +.BR PR_SET_MM_BRK (2const) diff --git a/man/man2const/PR_SET_MM_BRK.2const b/man/man2const/PR_SET_MM_BRK.2const new file mode 100644 index 0000000000..8c357c4a45 --- /dev/null +++ b/man/man2const/PR_SET_MM_BRK.2const @@ -0,0 +1,57 @@ +.\" Copyright 2012, Cyrill Gorcunov <gorcunov@openvz.org> +.\" Copyright 2012, 2013, 2015, Michael Kerrisk <mtk.manpages@gmail.com> +.\" Copyright 2024, Alejandro Colomar <alx@kernel.org> +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH PR_SET_MM_BRK 2const (date) "Linux man-pages (unreleased)" +.SH NAME +PR_SET_MM_BRK +\- +modify kernel memory map descriptor fields +.SH LIBRARY +Standard C library +.RI ( libc ", " \-lc ) +.SH SYNOPSIS +.nf +.B #include <sys/prctl.h> +.P +.BI "int prctl(PR_SET_MM, PR_SET_MM_BRK, unsigned long " addr ", 0L, 0L);" +.fi +.SH DESCRIPTION +Set the current +.BR brk (2) +value. +.P +The requirements for the address are the same as for the +.B PR_SET_MM_START_BRK +option. +.SH RETURN VALUE +On success, +0 is returned. +On error, \-1 is returned, and +.I errno +is set to indicate the error. +.SH ERRORS +.TP +.B EINVAL +.I addr +is greater than +.B TASK_SIZE +(the limit on the size of the user address space for this architecture). +.TP +.B EINVAL +.I addr +is less than or equal to the end of the data segment +or specifies a value that would cause the +.B RLIMIT_DATA +resource limit to be exceeded. +.SH STANDARDS +Linux. +.SH HISTORY +Linux 3.3. +.\" commit 028ee4be34a09a6d48bdf30ab991ae933a7bc036 +.SH SEE ALSO +.BR prctl (2), +.BR PR_SET_MM (2const), +.BR PR_SET_MM_START_BRK (2const) |
