tuklib_physmem.h 763 B

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