summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2004-08-10 14:52:42 +0000
committergreen <green@FreeBSD.org>2004-08-10 14:52:42 +0000
commit94edfa59ed028a1711a8492bbc0818247c5c73c7 (patch)
tree7a706f467561e0a05b1cca44eed4a03156dfafe7 /lib/libc
parent7ba21185161ba9b9a108a43abf37aad77a44e364 (diff)
downloadFreeBSD-src-94edfa59ed028a1711a8492bbc0818247c5c73c7.zip
FreeBSD-src-94edfa59ed028a1711a8492bbc0818247c5c73c7.tar.gz
Update mlock(2) manpage to cross-reference m{,un}lockall(2), remove
a case where ENOMEM could be returned by munlock(2), and add possible system deadlock to the BUGS section.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/mlock.26
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/sys/mlock.2 b/lib/libc/sys/mlock.2
index d0d3de2..3449b66 100644
--- a/lib/libc/sys/mlock.2
+++ b/lib/libc/sys/mlock.2
@@ -137,9 +137,10 @@ The caller is not the super-user.
The address given is not page aligned or the length is negative.
.It Bq Er ENOMEM
Some portion of the indicated address range is not allocated.
-Some portion of the indicated address range is not locked.
.El
.Sh "SEE ALSO"
+.Xr mlockall 2,
+.Xr munlockall 2,
.Xr fork 2 ,
.Xr mincore 2 ,
.Xr minherit 2 ,
@@ -148,6 +149,9 @@ Some portion of the indicated address range is not locked.
.Xr setrlimit 2 ,
.Xr getpagesize 3
.Sh BUGS
+Allocating too much wired memory can lead to a memory-allocation deadlock
+which requires a reboot to recover from.
+.Pp
The per-process resource limit is a limit on the amount of virtual
memory locked, while the system-wide limit is for the number of locked
physical pages.
OpenPOWER on IntegriCloud