mirror of https://github.com/mkerrisk/man-pages
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:
parent
2b4fecb9f6
commit
8c97c565ee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue