dpkg 1.21.11
Data Structures | Macros | Functions
meminfo.c File Reference

(b362110b4)

#include <config.h>
#include <compat.h>
#include <sys/stat.h>
#include <errno.h>
#include <inttypes.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <dpkg/dpkg.h>
#include <dpkg/fdio.h>
#include <dpkg/meminfo.h>
Include dependency graph for meminfo.c:

Data Structures

struct  meminfo_field
 

Macros

#define MEMINFO_FIELD(name, tag)   name, sizeof(name) - 1, tag, 0
 

Functions

int meminfo_get_available_from_file (const char *filename, uint64_t *val)
 
int meminfo_get_available (uint64_t *val)
 

Macro Definition Documentation

◆ MEMINFO_FIELD

#define MEMINFO_FIELD (   name,
  tag 
)    name, sizeof(name) - 1, tag, 0