text: The following form allows you to view linux man pages.
  #include <sys/mman.h>
  int mlock(const void *addr, size_t len);
  int munlock(const void *addr, size_t len);
  int mlockall(int flags);
  int munlockall(void);.
  For mlock() and munlock():
  EAGAIN Some or all of the specified address range could not be locked.
  EINVAL The result of the addition start+len was less than start (e.g.,
  the addition may have resulted in an overflow).).
  POSIX.1-2001, SVr4.).)).
  Cryptographic security software often handles critical bytes like pass-
  words or secret keys as data structures. As a result of paging, these
  can occur in the critical section.
  Memory locks are not inherited by a child created via fork(2) and are
  automatically removed (unlocked) during an execve(2) or when the pro-
  cess terminates.
  The memory lock on an address range is automatically removed if the
  address range is unmapped via munmap(2).
  Memory locks do not stack, that is, pages which have been locked.-
  LOCK resource limit is encountered.
  mmap(2), setrlimit(2), shmctl(2), sysconf(3), proc(5), capabilities(7)
  webmaster@linuxguruz.com