diff options
Diffstat (limited to 'man2/remap_file_pages.2')
-rw-r--r-- | man2/remap_file_pages.2 | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/man2/remap_file_pages.2 b/man2/remap_file_pages.2 index 0c87352c0..c2b808acf 100644 --- a/man2/remap_file_pages.2 +++ b/man2/remap_file_pages.2 @@ -43,7 +43,7 @@ in memory. The advantage of using .BR remap_file_pages () over using repeated calls to -.BR mmap (2) +.MR mmap 2 is that the former approach does not require the kernel to create additional VMA (Virtual Memory Area) data structures. .P @@ -51,7 +51,7 @@ To create a nonlinear mapping we perform the following steps: .TP 3 1. Use -.BR mmap (2) +.MR mmap 2 to create a mapping (which is initially linear). This mapping must be created with the .B MAP_SHARED @@ -84,7 +84,7 @@ Thus, .I addr must be an address that falls within a region previously mapped by a call to -.BR mmap (2). +.MR mmap 2 . Second, .I addr specifies the address at which the file pages @@ -115,7 +115,7 @@ argument must be specified as 0. The .I flags argument has the same meaning as for -.BR mmap (2), +.MR mmap 2 , but all flags other than .B MAP_NONBLOCK are ignored. @@ -154,17 +154,17 @@ Since Linux 2.6.23, .BR remap_file_pages () creates non-linear mappings only on in-memory filesystems such as -.BR tmpfs (5), +.MR tmpfs 5 , hugetlbfs or ramfs. On filesystems with a backing store, .BR remap_file_pages () is not much more efficient than using -.BR mmap (2) +.MR mmap 2 to adjust which parts of the file are mapped to which addresses. .SH SEE ALSO -.BR getpagesize (2), -.BR mmap (2), -.BR mmap2 (2), -.BR mprotect (2), -.BR mremap (2), -.BR msync (2) +.MR getpagesize 2 , +.MR mmap 2 , +.MR mmap2 2 , +.MR mprotect 2 , +.MR mremap 2 , +.MR msync 2 |