tuklib_physmem.h 694 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: 0BSD
  2. ///////////////////////////////////////////////////////////////////////////////
  3. //
  4. /// \file tuklib_physmem.h
  5. /// \brief Get the amount of physical memory
  6. //
  7. // Author: Lasse Collin
  8. //
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #ifndef TUKLIB_PHYSMEM_H
  11. #define TUKLIB_PHYSMEM_H
  12. #include "tuklib_common.h"
  13. TUKLIB_DECLS_BEGIN
  14. #define tuklib_physmem TUKLIB_SYMBOL(tuklib_physmem)
  15. extern uint64_t tuklib_physmem(void);
  16. ///<
  17. /// \brief Get the amount of physical memory in bytes
  18. ///
  19. /// \return Amount of physical memory in bytes. On error, zero is
  20. /// returned.
  21. TUKLIB_DECLS_END
  22. #endif