Stackdb
Stackdb is a stackable, multi-target and -level source debugger and memory forensics library.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
memcache.h File Reference
#include "config.h"
#include "glib.h"
#include "common.h"
#include "clfit.h"
Include dependency graph for memcache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  memcache
 
struct  memcache_tag_entry
 
struct  memcache_v2p_entry
 
struct  memcache_mmap_entry
 

Macros

#define MEMCACHE_TAG_ANY   ADDRMAX
 

Typedefs

typedef void(* memcache_tag_priv_dtor )(ADDR tag, void *tag_priv)
 

Enumerations

enum  memcache_flags_t { MEMCACHE_PHYS = 1 << 0, MEMCACHE_VIRT = 1 << 1 }
 

Functions

struct memcachememcache_create (unsigned long int max_v2p, unsigned long int max_mmap_size, memcache_tag_priv_dtor pdtor)
 
void memcache_destroy (struct memcache *memcache)
 
int memcache_invalidate_all_v2p (struct memcache *memcache, ADDR tag)
 
int memcache_invalidate_all_mmap (struct memcache *memcache, ADDR tag)
 
int memcache_invalidate_all (struct memcache *memcache)
 
void memcache_inc_ticks (struct memcache *memcache, unsigned int new_ticks)
 
int memcache_get_v2p (struct memcache *memcache, ADDR tag, ADDR va, ADDR *pa, void **tag_priv)
 
int memcache_get_mmap (struct memcache *memcache, ADDR tag, ADDR pa, unsigned long int pa_len, memcache_flags_t flags, ADDR *pa_start, OFFSET *pa_offset, void **mem, unsigned long int *mem_len, void **tag_priv)
 
int memcache_set_tag_priv (struct memcache *memcache, ADDR tag, void *tag_priv)
 
int memcache_set_v2p (struct memcache *memcache, ADDR tag, ADDR va, ADDR pa)
 
int memcache_set_mmap (struct memcache *memcache, ADDR tag, ADDR pa, memcache_flags_t flags, void *mem, unsigned long int mem_len)
 
unsigned long int memcache_lru_evict_mmap (struct memcache *memcache, ADDR tag, memcache_flags_t flags, unsigned long int mem_len)
 

Macro Definition Documentation

#define MEMCACHE_TAG_ANY   ADDRMAX

Definition at line 45 of file memcache.h.

Typedef Documentation

typedef void(* memcache_tag_priv_dtor)(ADDR tag, void *tag_priv)

Definition at line 47 of file memcache.h.

Enumeration Type Documentation

Enumerator
MEMCACHE_PHYS 
MEMCACHE_VIRT 

Definition at line 49 of file memcache.h.

Function Documentation

struct memcache* memcache_create ( unsigned long int  max_v2p,
unsigned long int  max_mmap_size,
memcache_tag_priv_dtor  pdtor 
)

Definition at line 33 of file memcache.c.

void memcache_destroy ( struct memcache memcache)

Definition at line 49 of file memcache.c.

int memcache_get_mmap ( struct memcache memcache,
ADDR  tag,
ADDR  pa,
unsigned long int  pa_len,
memcache_flags_t  flags,
ADDR pa_start,
OFFSET pa_offset,
void **  mem,
unsigned long int *  mem_len,
void **  tag_priv 
)

Definition at line 265 of file memcache.c.

int memcache_get_v2p ( struct memcache memcache,
ADDR  tag,
ADDR  va,
ADDR pa,
void **  tag_priv 
)

Definition at line 232 of file memcache.c.

void memcache_inc_ticks ( struct memcache memcache,
unsigned int  new_ticks 
)

Definition at line 220 of file memcache.c.

int memcache_invalidate_all ( struct memcache memcache)

Definition at line 138 of file memcache.c.

int memcache_invalidate_all_mmap ( struct memcache memcache,
ADDR  tag 
)

Definition at line 117 of file memcache.c.

int memcache_invalidate_all_v2p ( struct memcache memcache,
ADDR  tag 
)

Definition at line 78 of file memcache.c.

unsigned long int memcache_lru_evict_mmap ( struct memcache memcache,
ADDR  tag,
memcache_flags_t  flags,
unsigned long int  mem_len 
)

Definition at line 486 of file memcache.c.

int memcache_set_mmap ( struct memcache memcache,
ADDR  tag,
ADDR  pa,
memcache_flags_t  flags,
void *  mem,
unsigned long int  mem_len 
)

Definition at line 402 of file memcache.c.

int memcache_set_tag_priv ( struct memcache memcache,
ADDR  tag,
void *  tag_priv 
)

Definition at line 354 of file memcache.c.

int memcache_set_v2p ( struct memcache memcache,
ADDR  tag,
ADDR  va,
ADDR  pa 
)

Definition at line 369 of file memcache.c.