aboutsummaryrefslogtreecommitdiffstats
path: root/man2/remap_file_pages.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2005-10-19 07:07:02 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2005-10-19 07:07:02 +0000
commit63aa9df02fee88a559822c460ab5a30f1d8414ee (patch)
treefedc607745a57e06a1a541feca62e18d51523ddb /man2/remap_file_pages.2
parente511ffb6bcaa9a584412a95e602435827e302033 (diff)
downloadman-pages-63aa9df02fee88a559822c460ab5a30f1d8414ee.tar.gz
Automated unformatting of parentheses using unformat_parens.sh
Diffstat (limited to 'man2/remap_file_pages.2')
-rw-r--r--man2/remap_file_pages.218
1 files changed, 9 insertions, 9 deletions
diff --git a/man2/remap_file_pages.2 b/man2/remap_file_pages.2
index 766e991a69..cc13bd4f78 100644
--- a/man2/remap_file_pages.2
+++ b/man2/remap_file_pages.2
@@ -31,12 +31,12 @@ remap_file_pages \- create a non-linear file mapping
.BI "ssize_t " pgoff ", int " flags );
.SH DESCRIPTION
The
-.B remap_file_pages()
+.BR remap_file_pages ()
system call is used to create a non-linear mapping, that is, a mapping
in which the pages of the file are mapped into a non-sequential order
in memory.
The advantage of using
-.B remap_file_pages()
+.BR remap_file_pages ()
over using repeated calls to
.BR mmap (2)
is that the former approach does not require the kernel to create
@@ -46,14 +46,14 @@ To create a non-linear mapping we perform the following steps:
.TP
\fB1.\fp
Use
-.B mmap()
+.BR mmap ()
to create a mapping (which is initially linear).
This mapping must be created with the
MAP_SHARED flag.
.TP
\fB2.\fp
Use one or more calls to
-.B remap_file_pages()
+.BR remap_file_pages ()
to rearrange the correspondence between the pages of the mapping
and the pages of the file.
It is possible to map the same page of a file
@@ -78,7 +78,7 @@ Thus,
.I start
must be an address that falls within
a region previously mapped by a call to
-.BR mmap() .
+.BR mmap ().
Second,
.I start
specifies the address at which the file pages
@@ -109,18 +109,18 @@ argument must be specified as 0.
The
.I flags
argument has the same meaning as for
-.BR mmap() ,
+.BR mmap (),
but all flags other than MAP_NONBLOCK are ignored.
.SH "RETURN VALUE"
On success,
-.B remap_file_pages()
+.BR remap_file_pages ()
returns 0.
On error, \-1 is returned, and
.I errno
is set appropriately.
.SH NOTES
The
-.B remap_file_pages()
+.BR remap_file_pages ()
system call appeared in Linux 2.5.46.
.SH ERRORS
.TP
@@ -139,7 +139,7 @@ is invalid.
.\" And possibly others from vma->vm_ops->populate()
.SH "CONFORMING TO"
The
-.B remap_file_pages()
+.BR remap_file_pages ()
system call is Linux specific.
.SH "SEE ALSO"
.BR getpagesize (2),