Debian Codegraph @

upstream/debian-unstable/man2/PR_SET_MM_BRK.2const

raw
1 .\" Copyright 2012, Cyrill Gorcunov <[email protected]>
2 .\" Copyright 2012-2015, Michael Kerrisk <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\"
7 .TH PR_SET_MM_BRK 2const 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 PR_SET_MM_BRK
10 \-
11 modify kernel memory map descriptor fields
12 .SH LIBRARY
13 Standard C library
14 .RI ( libc ,\~ \-lc )
15 .SH SYNOPSIS
16 .nf
17 .BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */"
18 .B #include <sys/prctl.h>
19 .P
20 .BI "int prctl(PR_SET_MM, PR_SET_MM_BRK, unsigned long " addr ", 0L, 0L);"
21 .fi
22 .SH DESCRIPTION
23 Set the current
24 .BR brk (2)
25 value.
26 .P
27 The requirements for the address are the same as for the
28 .B PR_SET_MM_START_BRK
29 option.
30 .SH RETURN VALUE
31 On success,
32 0 is returned.
33 On error, \-1 is returned, and
34 .I errno
35 is set to indicate the error.
36 .SH ERRORS
37 .TP
38 .B EINVAL
39 .I addr
40 is greater than
41 .B TASK_SIZE
42 (the limit on the size of the user address space for this architecture).
43 .TP
44 .B EINVAL
45 .I addr
46 is less than or equal to the end of the data segment
47 or specifies a value that would cause the
48 .B RLIMIT_DATA
49 resource limit to be exceeded.
50 .SH STANDARDS
51 Linux.
52 .SH HISTORY
53 Linux 3.3.
54 .\" commit 028ee4be34a09a6d48bdf30ab991ae933a7bc036
55 .SH SEE ALSO
56 .BR prctl (2),
57 .BR PR_SET_MM (2const),
58 .BR PR_SET_MM_START_BRK (2const)