zx_system_get_physmem

Summary

Get amount of physical memory on the system.

Declaration

#include <zircon/syscalls.h>

uint64_t zx_system_get_physmem(void);

Description

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

Rights

TODO(https://fxbug.dev/42107318)

Return value

zx_system_get_physmem() returns a number in bytes.

Errors

zx_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