mirror of https://github.com/mkerrisk/man-pages
mmap.2: Add brief documentation of MAP_HUGETLB
This flag is new in 2.6.32, and serves a similar purpose to the shmget() SHM_HUGETLB flag. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
015221eff8
commit
76a34baa39
|
@ -37,7 +37,7 @@
|
|||
.\" 2007-07-10, mtk, Added an example program.
|
||||
.\" 2008-11-18, mtk, document MAP_STACK
|
||||
.\"
|
||||
.TH MMAP 2 2008-12-01 "Linux" "Linux Programmer's Manual"
|
||||
.TH MMAP 2 2009-09-26 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
mmap, munmap \- map or unmap files or devices into memory
|
||||
.SH SYNOPSIS
|
||||
|
@ -226,6 +226,12 @@ Used for stacks.
|
|||
Indicates to the kernel virtual memory system that the mapping
|
||||
should extend downwards in memory.
|
||||
.TP
|
||||
.BR MAP_HUGETLB " (since Linux 2.6.32)"
|
||||
Allocate the mapping using "huge pages."
|
||||
See the kernel source file
|
||||
.I Documentation/vm/hugetlbpage.txt
|
||||
for further information.
|
||||
.TP
|
||||
.BR MAP_LOCKED " (since Linux 2.5.37)"
|
||||
Lock the pages of the mapped region into memory in the manner of
|
||||
.BR mlock (2).
|
||||
|
|
Loading…
Reference in New Issue