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:
Michael Kerrisk 2009-09-26 06:39:36 +02:00
parent 015221eff8
commit 76a34baa39
1 changed files with 7 additions and 1 deletions

View File

@ -37,7 +37,7 @@
.\" 2007-07-10, mtk, Added an example program. .\" 2007-07-10, mtk, Added an example program.
.\" 2008-11-18, mtk, document MAP_STACK .\" 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 .SH NAME
mmap, munmap \- map or unmap files or devices into memory mmap, munmap \- map or unmap files or devices into memory
.SH SYNOPSIS .SH SYNOPSIS
@ -226,6 +226,12 @@ Used for stacks.
Indicates to the kernel virtual memory system that the mapping Indicates to the kernel virtual memory system that the mapping
should extend downwards in memory. should extend downwards in memory.
.TP .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)" .BR MAP_LOCKED " (since Linux 2.5.37)"
Lock the pages of the mapped region into memory in the manner of Lock the pages of the mapped region into memory in the manner of
.BR mlock (2). .BR mlock (2).