aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2022-11-08 17:33:19 +0100
committerGitHub <noreply@github.com>2022-11-08 17:33:19 +0100
commit8975c05d199558b0cc2e98f26ce33c6090d1d7a1 (patch)
treeb49784aa3531cca6fbd44f64bcd5f5a29e9dba54 /docs/src
parent07949ce2aea6028ef597faf193b2fddf4a889036 (diff)
downloadlibuv-8975c05d199558b0cc2e98f26ce33c6090d1d7a1.tar.gz
libuv-8975c05d199558b0cc2e98f26ce33c6090d1d7a1.zip
doc: document 0 return value for free/total memory (#3817)
Refs: https://github.com/libuv/libuv/discussions/3809
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/misc.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst
index 423ef84c..a18040e2 100644
--- a/docs/src/misc.rst
+++ b/docs/src/misc.rst
@@ -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)