Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1566213 > unrolled thread
| Started by | David Rientjes <rientjes@google.com> |
|---|---|
| First post | 2017-01-24 23:40 +0100 |
| Last post | 2017-01-24 23:40 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[patch -man] madvise.2: Specify new ENOMEM return value David Rientjes <rientjes@google.com> - 2017-01-24 23:40 +0100
| From | David Rientjes <rientjes@google.com> |
|---|---|
| Date | 2017-01-24 23:40 +0100 |
| Subject | [patch -man] madvise.2: Specify new ENOMEM return value |
| Message-ID | <t3hUS-1Ql-23@gated-at.bofh.it> |
madvise(2) may return ENOMEM if the advice acts on a vma that must be split and creating the new vma will result in the process exceeding /proc/sys/vm/max_map_count. Specify this additional possibility. Signed-off-by: David Rientjes <rientjes@google.com> --- man2/madvise.2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/man2/madvise.2 b/man2/madvise.2 --- a/man2/madvise.2 +++ b/man2/madvise.2 @@ -467,7 +467,12 @@ Not enough memory: paging in failed. .TP .B ENOMEM Addresses in the specified range are not currently -mapped, or are outside the address space of the process. +mapped, are outside the address space of the process, or will result in the +number of areas mapped by this process to exceed +.I /proc/sys/vm/max_map_count +(see the Linux kernel source file +.I Documentation/sysctl/vm.txt +for more details). .TP .B EPERM .I advice
Back to top | Article view | linux.kernel
csiph-web