]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/mmap.2
mmap.2: Fix description of treatment of the hint
[thirdparty/man-pages.git] / man2 / mmap.2
index fccfb9b3e9864d2a4880ecfdcc39c28f2241e06b..dbcae59bef6280c1daa164a0384218efdf2252c5 100644 (file)
@@ -71,7 +71,12 @@ If
 .I addr
 is not NULL,
 then the kernel takes it as a hint about where to place the mapping;
-on Linux, the mapping will be created at a nearby page boundary.
+on Linux, the kernel will pick a nearby page boundary (but always above
+or equal to the value specified by
+.IR /proc/sys/vm/mmap_min_addr )
+and attempt to create the mapping there.
+If another mapping already exists there, the kernel picks a new address that
+may or may not depend on the hint.
 .\" Before Linux 2.6.24, the address was rounded up to the next page
 .\" boundary; since 2.6.24, it is rounded down!
 The address of the new mapping is returned as the result of the call.