NAME | SYNOPSIS | API RESTRICTIONS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO
#include <mem/chMem.h>int vmStat(KnVmStat *stat);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
MEM_FLAT, MEM_PROTECTED, MEM_VIRTUAL
The vmStat system call gets memory management statistics on the current site.
The KnVmStat contains the following fields:
KnVmPar par ; VmSize hostMem ; VmSize freeMem ; VmSize lockMem ; |
The hostMem field gives the site's physical memory size.
The freeMem field gives the amount of currently unallocated physical memory.
The lockMem field gives the amount of currently allocated and non-swappable physical memory.
The par field gives the memory management parameters as described in vmSetPar(2K).
If successful K_OK is returned, otherwise a negative error code is returned.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO