mdbx: extract mdbx_get_sysraminfo().

Change-Id: I8821009572d275a3b5d2d8729f605b115a80e50a
This commit is contained in:
Leonid Yuriev
2021-04-07 01:45:14 +03:00
parent 0f76002dde
commit 024ccf6826
4 changed files with 152 additions and 112 deletions

6
mdbx.h
View File

@@ -2858,6 +2858,12 @@ LIBMDBX_INLINE_API(int, mdbx_env_get_maxdbs,
* page and usually exactly match it. */
MDBX_NOTHROW_PURE_FUNCTION LIBMDBX_API size_t mdbx_default_pagesize(void);
/** \brief Returns basic information about system RAM.
* \ingroup c_statinfo
*/
LIBMDBX_API int mdbx_get_sysraminfo(intptr_t *page_size, intptr_t *total_pages,
intptr_t *avail_pages);
/** \brief Get the maximum size of keys can write.
* \ingroup c_statinfo
*