.\" 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
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
.BR setrlimit (2),
.BR shmctl (2),
.BR sysconf (3),
+.BR proc (5),
.BR capabilities (7)