dpkg 1.21.11
Enumerations | Functions
Memory information handling
Collaboration diagram for Memory information handling:

Enumerations

enum  meminfo_error_code {
  MEMINFO_OK = 0 , MEMINFO_NO_FILE = -1 , MEMINFO_NO_DATA = -2 , MEMINFO_INT_NEG = -3 ,
  MEMINFO_INT_MAX = -4 , MEMINFO_NO_UNIT = -5 , MEMINFO_NO_INFO = -6
}
 

Functions

enum meminfo_error_code meminfo_get_available_from_file (const char *filename, uint64_t *val)
 
enum meminfo_error_code meminfo_get_available (uint64_t *val)
 

Detailed Description

Enumeration Type Documentation

◆ meminfo_error_code

Enumerator
MEMINFO_OK 
MEMINFO_NO_FILE 
MEMINFO_NO_DATA 
MEMINFO_INT_NEG 
MEMINFO_INT_MAX 
MEMINFO_NO_UNIT 
MEMINFO_NO_INFO 

Function Documentation

◆ meminfo_get_available()

enum meminfo_error_code meminfo_get_available ( uint64_t *  val)

References meminfo_get_available_from_file(), and MEMINFO_NO_FILE.

Here is the call graph for this function:

◆ meminfo_get_available_from_file()

enum meminfo_error_code meminfo_get_available_from_file ( const char *  filename,
uint64_t *  val 
)

References array_count, DPKG_BIT, fd_read(), MEMINFO_FIELD, MEMINFO_NO_DATA, and MEMINFO_NO_FILE.

Referenced by meminfo_get_available().

Here is the call graph for this function:
Here is the caller graph for this function: