mremap.2: Move a paragraph from DESCRIPTION to NOTES

And while we are at it, remove a sentence that makes an obvious
point (that mremap() uses the Linux page table scheme).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-04-16 08:10:46 +02:00
parent 2b4fecb9f6
commit 8c97c565ee
1 changed files with 6 additions and 8 deletions

View File

@ -88,14 +88,6 @@ writing to a read-only segment).
Accessing virtual memory outside of the
segments will also cause a segmentation violation.
.PP
.BR mremap ()
uses the Linux page table scheme.
.BR mremap ()
changes the
mapping between virtual addresses and memory pages.
This can be used to implement a very efficient
.BR realloc (3).
.PP
The \fIflags\fP bit-mask argument may be 0, or include the following flag:
.TP
.B MREMAP_MAYMOVE
@ -281,6 +273,12 @@ intended to be portable.
.\" call with completely different semantics.
.SH NOTES
.PP
.BR mremap ()
changes the
mapping between virtual addresses and memory pages.
This can be used to implement a very efficient
.BR realloc (3).
.PP
If
.BR mremap ()
is used to move or expand an area locked with