]> git.ipfire.org Git - thirdparty/man-pages.git/commit
mremap.2: Add note about mremap() with locked areas
authorEric B Munson <emunson@akamai.com>
Fri, 28 Aug 2015 18:42:52 +0000 (14:42 -0400)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 11 Sep 2015 11:45:35 +0000 (13:45 +0200)
commita0742a27bedebf401a2270970368624fd11861be
treedbcbd4d0f2b462c5860378e79d6c9e054ecbc888
parente8aa7100f51b28b5f4265429ee5c7c11a17e12ac
mremap.2: Add note about mremap() with locked areas

When mremap() is used to move or expand a mapping that is locked
with mlock() or equivalent it will attempt to populate the new
area.  However, like mmap(MAP_LOCKED), mremap() will not fail if
the area cannot be populated.  Also like mmap(MAP_LOCKED) this
might come as a surprise to users and should be noted.

Signed-off-by: Eric B Munson <emunson@akamai.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: David Rientjes <rientjes@google.com>
Cc: linux-man@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/mremap.2