mirror of https://github.com/mkerrisk/man-pages
mremap.2: Clarify existence of fifth argument.
Reported-by: Andi Kleen <andi@firstfloor.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
1fd0fa4338
commit
ebbb5118f0
|
@ -28,7 +28,7 @@
|
||||||
.\" Update for Linux 1.3.87 and later
|
.\" Update for Linux 1.3.87 and later
|
||||||
.\" 2005-10-11 mtk: Added NOTES for MREMAP_FIXED; revised EINVAL text.
|
.\" 2005-10-11 mtk: Added NOTES for MREMAP_FIXED; revised EINVAL text.
|
||||||
.\"
|
.\"
|
||||||
.TH MREMAP 2 2005-09-13 "Linux" "Linux Programmer's Manual"
|
.TH MREMAP 2 2010-06-10 "Linux" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
mremap \- remap a virtual memory address
|
mremap \- remap a virtual memory address
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -38,7 +38,7 @@ mremap \- remap a virtual memory address
|
||||||
.B #include <sys/mman.h>
|
.B #include <sys/mman.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "void *mremap(void *" old_address ", size_t " old_size ,
|
.BI "void *mremap(void *" old_address ", size_t " old_size ,
|
||||||
.BI " size_t " new_size ", int " flags );
|
.BI " size_t " new_size ", int " flags ", ... /* void *" new_address " */);"
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.BR mremap ()
|
.BR mremap ()
|
||||||
|
@ -54,6 +54,11 @@ aligned.
|
||||||
virtual memory block.
|
virtual memory block.
|
||||||
\fInew_size\fP is the requested size of the
|
\fInew_size\fP is the requested size of the
|
||||||
virtual memory block after the resize.
|
virtual memory block after the resize.
|
||||||
|
An optional fifth argument,
|
||||||
|
.IR new_address ,
|
||||||
|
may be provided; see the description of
|
||||||
|
.B MREMAP_FIXED
|
||||||
|
below.
|
||||||
|
|
||||||
In Linux the memory is divided into pages.
|
In Linux the memory is divided into pages.
|
||||||
A user process has (one or)
|
A user process has (one or)
|
||||||
|
|
Loading…
Reference in New Issue