|
cwist
Modern C web framework with libttak runtime
|
System Resource Monitoring Utilities. More...
#include <stddef.h>#include <stdint.h>#include <stdbool.h>

Go to the source code of this file.
Functions | |
| uint64_t | cwist_get_available_ram (void) |
| Get the available (free + reclaimable) system RAM in bytes. | |
| bool | cwist_is_ram_critical (uint64_t threshold_bytes) |
| Check if system RAM is critically low. | |
System Resource Monitoring Utilities.
Definition in file sys_info.h.
Get the available (free + reclaimable) system RAM in bytes.
Uses /proc/meminfo on Linux. Uses sysctl on BSD/macOS.
Get the available (free + reclaimable) system RAM in bytes.
Definition at line 90 of file sys_info.c.
References CWIST_GIB.
Referenced by cwist_is_ram_critical(), and cwist_nuke_init().
Check if system RAM is critically low.
| threshold_bytes | The minimum bytes that should be available. |
Check if system RAM is critically low.
| threshold_bytes | Threshold in bytes that marks memory as critical. |
Definition at line 100 of file sys_info.c.
References cap, and cwist_get_available_ram().