mlock(2) man page errata
Dieter BSD
dieterbsd at engineer.com
Thu Mar 29 20:10:23 UTC 2012
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.
More information about the freebsd-hackers
mailing list