NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO
#include <mem/chMem.h>int vmSetPar(KnVmPar *par);
MEM_FLAT, MEM_PROTECTED, MEM_VIRTUAL
vmSetPar sets the virtual memory management parameters on the current site.
The KnVmPar structure describes the site memory management parameters:
KnUniqueId defaultMapper ; VmSize redMark ; VmSize orangeMark ; VmSize greenMark ; VmAddr usrStartAddr ; VmAddr usrEndAddr ; VmAddr svStartAddr ; VmAddr svEndAddr ; VmOffset minOffset ; VmOffset maxOffset ; |
defaultMapper field specifies the default mapper UI.
When the size of free memory on the site goes over the orangeMark the memory management system starts the swap out daemon(s).
When the size of free memory on the site comes back to the greenMark, the swap out daemons stop.
When the size of free memory on the site goes over the redMark the memory management system tries to stop all threads not involved in swap out activity.
usrStartAddr and usrEndAddr specify the boundary of user address space.
svStartAddr and svEndAddr specify the boundary of the system address space.
minOffset and maxOffset specifies the valid range of segment offsets.
If successful K_OK is returned, otherwise a negative error code is returned.
The values of marks are inconsistent.
Some of the provided arguments are outside the caller's address space.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO