Arquivos
magenta/docs/syscalls/system_get_physmem.md
Roland McGrath 6da13538c1 [ulib][magenta] Add mx_system_get_physmem vDSO call
Also make musl's POSIX.1 sysconf(_SC_PHYS_PAGES) use it.

MG-544 #done

Change-Id: Iec56e78174f7ba7495750d14bfb696dd7a934a84
2017-02-27 22:37:39 +00:00

628 B

mx_system_get_physmem

NAME

system_get_physmem - get amount of physical memory on the system

SYNOPSIS

#include <magenta/syscalls.h>

size_t mx_system_get_physmem(void);

DESCRIPTION

system_get_physmem() returns the total size of physical memory on the machine, in bytes.

RETURN VALUE

system_get_physmem() returns a number in bytes.

ERRORS

system_get_physmem() cannot fail.

NOTES

Currently the total size of physical memory cannot change during a run of the system, only at boot time. This might change in the future.

SEE ALSO

system_get_num_cpus.