1 ///////////////////////////////////////////////////////////////////////////////
3 /// \file tuklib_physmem.h
4 /// \brief Get the amount of physical memory
6 // Author: Lasse Collin
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
11 ///////////////////////////////////////////////////////////////////////////////
13 #ifndef TUKLIB_PHYSMEM_H
14 #define TUKLIB_PHYSMEM_H
16 #include "tuklib_common.h"
19 #define tuklib_physmem TUKLIB_SYMBOL(tuklib_physmem)
20 extern uint64_t tuklib_physmem(void);
22 /// \brief Get the amount of physical memory in bytes
24 /// \return Amount of physical memory in bytes. On error, zero is