doc: document 0 return value for free/total memory (#3817)

Refs: https://github.com/libuv/libuv/discussions/3809
This commit is contained in:
Ben Noordhuis 2022-11-08 17:33:19 +01:00 committed by GitHub
parent 07949ce2ae
commit 8975c05d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -551,11 +551,13 @@ API
.. c:function:: uint64_t uv_get_free_memory(void)
Gets the amount of free memory available in the system, as reported by the kernel (in bytes).
Gets the amount of free memory available in the system, as reported by
the kernel (in bytes). Returns 0 when unknown.
.. c:function:: uint64_t uv_get_total_memory(void)
Gets the total amount of physical memory in the system (in bytes).
Returns 0 when unknown.
.. c:function:: uint64_t uv_get_constrained_memory(void)