1 // SPDX-License-Identifier: 0BSD
3 ///////////////////////////////////////////////////////////////////////////////
5 /// \file tuklib_physmem.h
6 /// \brief Get the amount of physical memory
8 // Author: Lasse Collin
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef TUKLIB_PHYSMEM_H
13 #define TUKLIB_PHYSMEM_H
15 #include "tuklib_common.h"
18 #define tuklib_physmem TUKLIB_SYMBOL(tuklib_physmem)
19 extern uint64_t tuklib_physmem(void);
21 /// \brief Get the amount of physical memory in bytes
23 /// \return Amount of physical memory in bytes. On error, zero is