Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Mar 2012 15:17:34 -0400
From:      "Dieter BSD" <dieterbsd@engineer.com>
To:        freebsd-hackers@freebsd.org
Subject:   mlock(2) man page errata
Message-ID:  <20120329191735.155070@gmx.com>

next in thread | raw e-mail | index | archive | help
mlock(2) says:

> A single process can mlock() the minimum of a system-wide
> ``wired pages'' limit and the per-process RLIMIT_MEMLOCK
> resource limit.

Shouldn't this say maximum rather than minimum?

> [EAGAIN] Locking the indicated range would exceed either the
> system or per-process limit for locked memory.
>
> [ENOMEM] Some portion of the indicated address range is not
> allocated. There was an error faulting/mapping a page.

In some cases, the code returns ENOMEM if the limit is exceeded.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120329191735.155070>