From 22b6a68b913483cfdd54a45314b1c407ca1a5d5c Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 14 Sep 2005 13:51:30 +0000 Subject: [PATCH] Added text to note that start and size are both rounded downwards. --- man2/remap_file_pages.2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/man2/remap_file_pages.2 b/man2/remap_file_pages.2 index 5999fb7d1..766e991a6 100644 --- a/man2/remap_file_pages.2 +++ b/man2/remap_file_pages.2 @@ -88,6 +88,20 @@ and .I size will be placed. +The values specified in +.I start +and +.I size +should be multiples of the system page size. +If they are not, then the kernel rounds +.I both +values +.I down +to the nearest multiple of the page size. +.\" This rounding is weird, and not consistent with the treatment of +.\" the analogous arguments for munmap()/mprotect() and for mlock(). +.\" MTK, 14 Sep 2005 + The .I prot argument must be specified as 0.