# MemLib

## About
MemLib is a userspace library that provides interfaces for easy and uniform address translation. Internally, it accesses the pagemap files as well as the files created by kvmModule to get the address mappings.

## Build
Because MemLib is just a library, it cannot be built directly but has to be included in other projects.

## Usage
See the directory **examples** for usage examples of MemLib. See **MemTool** for another example.

## Structure of this directory
* **memoreInspect.c**: File containing the implementation of the mapping resolution.
* **memoryInspect.h**: File containing the headers of the mapping resolution and the definition of related data structures.
* **pfnInspect.c**: File containing the implementation of the pfn inspection functionality.
* **pfnInspect.h**: File containing the headers of the pfn inspection functionality
* **util.c**: File containing the implementation of utility functions.
* **util.h**: File containing the headers of utility functions.
* **examples**: Directory containing some examples how to use MemLib
* **README.md** README file with some documentation
