Debian Codegraph @

upstream/debian-unstable/man2/PR_SET_MM_START_DATA.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_START_DATA 2const 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 PR_SET_MM_START_DATA,
10 PR_SET_MM_END_DATA
11 \-
12 modify kernel memory map descriptor fields
13 .SH LIBRARY
14 Standard C library
15 .RI ( libc ,\~ \-lc )
16 .SH SYNOPSIS
17 .nf
18 .BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */"
19 .B #include <sys/prctl.h>
20 .P
21 .BI "int prctl(PR_SET_MM, PR_SET_MM_START_DATA, unsigned long " addr ", 0L, 0L);"
22 .BI "int prctl(PR_SET_MM, PR_SET_MM_END_DATA, unsigned long " addr ", 0L, 0L);"
23 .fi
24 .SH DESCRIPTION
25 .TP
26 .B PR_SET_MM_START_DATA
27 Set the address above which initialized and
28 uninitialized (bss) data are placed.
29 The corresponding memory area must be readable and writable,
30 but not executable or shareable.
31 .TP
32 .B PR_SET_MM_END_DATA
33 Set the address below which initialized and
34 uninitialized (bss) data are placed.
35 The corresponding memory area must be readable and writable,
36 but not executable or shareable.
37 .SH RETURN VALUE
38 On success,
39 0 is returned.
40 On error, \-1 is returned, and
41 .I errno
42 is set to indicate the error.
43 .SH ERRORS
44 .TP
45 .B EINVAL
46 .I addr
47 is greater than
48 .B TASK_SIZE
49 (the limit on the size of the user address space for this architecture).
50 .TP
51 .B EINVAL
52 The permissions of the corresponding memory area are not as required.
53 .SH STANDARDS
54 Linux.
55 .SH HISTORY
56 Linux 3.3.
57 .\" commit 028ee4be34a09a6d48bdf30ab991ae933a7bc036
58 .SH SEE ALSO
59 .BR prctl (2)