cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
sys_info.h
Go to the documentation of this file.
1
6#ifndef __CWIST_SYS_INFO_H__
7#define __CWIST_SYS_INFO_H__
8
9#include <stddef.h>
10#include <stdint.h>
11#include <stdbool.h>
12
21uint64_t cwist_get_available_ram(void);
22
28bool cwist_is_ram_critical(uint64_t threshold_bytes);
29
30#endif
bool cwist_is_ram_critical(uint64_t threshold_bytes)
Check if system RAM is critically low.
Definition sys_info.c:100
uint64_t cwist_get_available_ram(void)
Get the available (free + reclaimable) system RAM in bytes.
Definition sys_info.c:90