summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/mlock.2
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-12-18 09:22:32 +0000
committerru <ru@FreeBSD.org>2002-12-18 09:22:32 +0000
commita4b155d7a2170a500eb79b46959eef4018441062 (patch)
treecb18f664ed0ee63bee30f6af9b148510b6e9663b /lib/libc/sys/mlock.2
parente7e659d1cc574138f455ed70d58a07294211ff5a (diff)
downloadFreeBSD-src-a4b155d7a2170a500eb79b46959eef4018441062.zip
FreeBSD-src-a4b155d7a2170a500eb79b46959eef4018441062.tar.gz
mdoc(7) police: Tidy up the syscall language.
Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe.
Diffstat (limited to 'lib/libc/sys/mlock.2')
-rw-r--r--lib/libc/sys/mlock.214
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libc/sys/mlock.2 b/lib/libc/sys/mlock.2
index c6f168b..c4839c0 100644
--- a/lib/libc/sys/mlock.2
+++ b/lib/libc/sys/mlock.2
@@ -59,7 +59,7 @@ for
bytes.
The
.Fn munlock
-call unlocks pages previously locked by one or more
+system call unlocks pages previously locked by one or more
.Fn mlock
calls.
For both, the
@@ -73,7 +73,7 @@ The entire range must be allocated.
.Pp
After an
.Fn mlock
-call, the indicated pages will cause neither a non-resident page
+system call, the indicated pages will cause neither a non-resident page
nor address-translation fault until they are unlocked.
They may still cause protection-violation faults or TLB-miss faults on
architectures with software-managed TLBs.
@@ -110,7 +110,9 @@ These calls are only available to the super-user.
If the call succeeds, all pages in the range become locked (unlocked);
otherwise the locked status of all pages in the range remains unchanged.
.Sh ERRORS
-.Fn Mlock
+The
+.Fn mlock
+system call
will fail if:
.Bl -tag -width Er
.It Bq Er EPERM
@@ -124,7 +126,9 @@ limit for locked memory.
Some portion of the indicated address range is not allocated.
There was an error faulting/mapping a page.
.El
-.Fn Munlock
+The
+.Fn munlock
+system call
will fail if:
.Bl -tag -width Er
.It Bq Er EPERM
@@ -167,5 +171,5 @@ The
.Fn mlock
and
.Fn munlock
-functions first appeared in
+system calls first appeared in
.Bx 4.4 .
OpenPOWER on IntegriCloud