From 76a34baa39ea0a6ab98387b54daab3512ee92550 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 26 Sep 2009 06:39:36 +0200 Subject: [PATCH] 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 --- man2/mmap.2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/man2/mmap.2 b/man2/mmap.2 index ba7d105bb..d537cfc0d 100644 --- a/man2/mmap.2 +++ b/man2/mmap.2 @@ -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).