usermode/library/pmalloc/src/vhalloc.c File Reference

A simple persistent memory allocator based on Vistaheap. More...

#include <mnemosyne.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <pcm.h>
#include "vistaheap.h"
#include "genalloc.h"
#include "vhalloc.h"

Go to the source code of this file.

Classes

struct  header_s

Defines

#define VHALLOC_PREGION_BASE   0xc00000000
#define VHALLOC_PREGION_METADATA_SIZE   (1024*1024)
#define VHALLOC_PREGION_HOLE_SIZE   0
#define VHALLOC_PREGION_HEAP_SIZE   (1024*1024*1024)

Functions

 __attribute__ ((section("PERSISTENT")))
size_t VHALLOC_OBJSIZE (void *ptr)
void * VHALLOC_PMALLOC (size_t sz)
void vhalloc_pfree (void *ptr)


Detailed Description

A simple persistent memory allocator based on Vistaheap.

Definition in file vhalloc.c.


Generated on Sat Apr 23 11:43:36 2011 for Mnemosyne by  doxygen 1.4.7