Tor 0.4.9.0-alpha-dev
Functions
meminfo.h File Reference

Header for meminfo.c. More...

#include "lib/testsupport/testsupport.h"
#include <stddef.h>

Go to the source code of this file.

Functions

int get_total_system_memory (size_t *mem_out)
 

Detailed Description

Header for meminfo.c.

Definition in file meminfo.h.

Function Documentation

◆ get_total_system_memory()

int get_total_system_memory ( size_t *  mem_out)

Try to find out how much physical memory the system has. On success, return 0 and set *mem_out to that value. On failure, return -1.

Definition at line 129 of file meminfo.c.

Referenced by have_enough_mem_for_dircache().