mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-18 18:52:49 +08:00
mdbx: extract mdbx_get_sysraminfo()
.
Change-Id: I8821009572d275a3b5d2d8729f605b115a80e50a
This commit is contained in:
6
mdbx.h
6
mdbx.h
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user