OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man2 / remap_file_pages.2
index fb73d7a..1d6fb9b 100644 (file)
@@ -25,7 +25,7 @@
 .\" 2003-12-10 Initial creation, Michael Kerrisk <mtk.manpages@gmail.com>
 .\" 2004-10-28 aeb, corrected prototype, prot must be 0
 .\"
-.TH REMAP_FILE_PAGES 2 2008-04-22 "Linux" "Linux Programmer's Manual"
+.TH REMAP_FILE_PAGES 2 2014-05-28 "Linux" "Linux Programmer's Manual"
 .SH NAME
 remap_file_pages \- create a nonlinear file mapping
 .SH SYNOPSIS
@@ -34,7 +34,7 @@ remap_file_pages \- create a nonlinear file mapping
 .B #include <sys/mman.h>
 .sp
 .BI "int remap_file_pages(void *" addr ", size_t " size ", int " prot ,
-.BI "                     ssize_t " pgoff ", int " flags );
+.BI "                     size_t " pgoff ", int " flags );
 .fi
 .SH DESCRIPTION
 The
@@ -154,6 +154,17 @@ glibc support was added in version 2.3.3.
 The
 .BR remap_file_pages ()
 system call is Linux-specific.
+.SH NOTES
+Since Linux 2.6.23,
+.\" commit 3ee6dafc677a68e461a7ddafc94a580ebab80735
+.BR remap_file_pages ()
+creates non-linear mappings only
+on in-memory file systems such as tmpfs, hugetlbfs or ramfs.
+On filesystems with a backing store,
+.BR remap_file_pages ()
+is not much more efficient than using
+.BR mmap (2)
+to adjust which parts of the file are mapped to which addresses.
 .SH SEE ALSO
 .BR getpagesize (2),
 .BR mmap (2),
@@ -162,10 +173,11 @@ system call is Linux-specific.
 .BR mremap (2),
 .BR msync (2)
 .SH COLOPHON
-This page is part of release 3.65 of the Linux
+This page is part of release 3.68 of the Linux
 .I man-pages
 project.
 A description of the project,
-and information about reporting bugs,
+information about reporting bugs,
+and the latest version of this page,
 can be found at
 \%http://www.kernel.org/doc/man\-pages/.