These are the functions for locking pages in physical memory 
as described in POSIX.4.

INSTALL THE SOFTWARE:
^^^^^^^^^^^^^^^^^^^^
To install the software you simply apply the patch to 
version 1.2.2 or later:

cd /usr/src
patch < <thisdir>/POSIX.4_locking.patch

Now rebuild the kernel...

To test the new features you can use the programms in 
test. They show the behaviour of the locking mechanism
in fork, exec and exit statements.

POSIX.4 CONFORMANCE STATEMENT:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

A process can only lock up to 50% of the total physical
memory a comuter has. If it tries to lock more than this
an error occurs. In addition the process can only lock up
to 50% of the currently available physical memory.

Look in the POSIX.4 description for more information.

Have Fun

Ralf Haller (haller@iitb.fhg.de)