mremap.2: wfix

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

View File

@ -74,14 +74,16 @@ If a new mapping is requested via this method, then the
.B MREMAP_MAYMOVE
flag must also be specified.
.PP
In Linux the memory is divided into pages.
A user process has (one or)
In Linux, memory is divided into pages.
A process has (one or)
several linear virtual memory segments.
Each virtual memory segment has one
or more mappings to real memory pages (in the page table).
Each virtual memory segment has its own
protection (access rights), which may cause
a segmentation violation if the memory is accessed incorrectly (e.g.,
a segmentation violation
.RB ( SIGSEGV )
if the memory is accessed incorrectly (e.g.,
writing to a read-only segment).
Accessing virtual memory outside of the
segments will also cause a segmentation violation.