- Update manual pages accordingly to r244384 and r244385.

Approved by:	kib (mentor)
MFC after:	1 week
This commit is contained in:
zont 2012-12-25 13:43:01 +00:00
parent 9f622a1b38
commit 1c06919638
2 changed files with 25 additions and 9 deletions

View File

@ -28,7 +28,7 @@
.\" @(#)mlock.2 8.2 (Berkeley) 12/11/93 .\" @(#)mlock.2 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 27, 2010 .Dd December 25, 2012
.Dt MLOCK 2 .Dt MLOCK 2
.Os .Os
.Sh NAME .Sh NAME
@ -94,12 +94,15 @@ limited in how much they can lock down.
A single process can A single process can
.Fn mlock .Fn mlock
the minimum of the minimum of
a system-wide ``wired pages'' limit and a system-wide ``wired pages'' limit
the per-process .Va vm.max_wired
and the per-process
.Li RLIMIT_MEMLOCK .Li RLIMIT_MEMLOCK
resource limit. resource limit.
.Pp .Pp
These calls are only available to the super-user. If
.Va security.bsd.unprivileged_mlock
is set to 0 these calls are only available to the super-user.
.Sh RETURN VALUES .Sh RETURN VALUES
.Rv -std .Rv -std
.Pp .Pp
@ -112,7 +115,8 @@ system call
will fail if: will fail if:
.Bl -tag -width Er .Bl -tag -width Er
.It Bq Er EPERM .It Bq Er EPERM
The caller is not the super-user. .Va security.bsd.unprivileged_mlock
is set to 0 and the caller is not the super-user.
.It Bq Er EINVAL .It Bq Er EINVAL
The address given is not page aligned or the length is negative. The address given is not page aligned or the length is negative.
.It Bq Er EAGAIN .It Bq Er EAGAIN
@ -129,7 +133,8 @@ system call
will fail if: will fail if:
.Bl -tag -width Er .Bl -tag -width Er
.It Bq Er EPERM .It Bq Er EPERM
The caller is not the super-user. .Va security.bsd.unprivileged_mlock
is set to 0 and the caller is not the super-user.
.It Bq Er EINVAL .It Bq Er EINVAL
The address given is not page aligned or the length is negative. The address given is not page aligned or the length is negative.
.It Bq Er ENOMEM .It Bq Er ENOMEM

View File

@ -30,7 +30,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd July 27, 2010 .Dd December 25, 2012
.Dt MLOCKALL 2 .Dt MLOCKALL 2
.Os .Os
.Sh NAME .Sh NAME
@ -68,11 +68,22 @@ Since physical memory is a potentially scarce resource, processes are
limited in how much they can lock down. limited in how much they can lock down.
A single process can lock the minimum of a system-wide A single process can lock the minimum of a system-wide
.Dq wired pages .Dq wired pages
limit and the per-process limit
.Va vm.max_wired
and the per-process
.Dv RLIMIT_MEMLOCK .Dv RLIMIT_MEMLOCK
resource limit. resource limit.
.Pp .Pp
These calls are only available to the super-user. If
.Va security.bsd.unprivileged_mlock
is set to 0 these calls are only available to the super-user.
If
.Va vm.old_mlock
is set to 1 the per-process
.Dv RLIMIT_MEMLOCK
resource limit will not be applied for
.Fn mlockall
calls.
.Pp .Pp
The The
.Fn munlockall .Fn munlockall