diff --git a/man2/mlock.2 b/man2/mlock.2 index 07e3119a6..aa576a13a 100644 --- a/man2/mlock.2 +++ b/man2/mlock.2 @@ -24,7 +24,7 @@ .\" Software Foundation, Inc., 59 Temple Place, Suite 330, .\" Boston, MA 02111, USA. .\" -.TH MLOCK 2 2008-09-25 "Linux" "Linux Programmer's Manual" +.TH MLOCK 2 2010-03-05 "Linux" "Linux Programmer's Manual" .SH NAME mlock, munlock, mlockall, munlockall \- lock and unlock memory .SH SYNOPSIS @@ -283,6 +283,19 @@ down to the nearest page boundary. However, POSIX.1-2001 allows an implementation to require that .I addr is page aligned, so portable applications should ensure this. + +The +.I VmLck +field of the Linux-specific +.I /proc/PID/status +file shows how many kilobytes of memory the calling process has locked using +.BR mlock (), +.BR mlockall (), +.BR shmctl (2) +.BR SHM_LOCK , +and +.BR mmap (2) +.BR MAP_LOCKED . .SS "Limits and permissions" In Linux 2.6.8 and earlier, a process must be privileged @@ -326,4 +339,5 @@ resource limit is encountered. .BR setrlimit (2), .BR shmctl (2), .BR sysconf (3), +.BR proc (5), .BR capabilities (7)