usermode/library/mcore/src/segment.h File Reference

#include <pthread.h>
#include <stdio.h>
#include <stdint.h>
#include <list.h>
#include <result.h>

Go to the source code of this file.

Classes

struct  m_segidx_entry_s
struct  m_segidx_s
struct  m_segtbl_entry_s
struct  m_segtbl_s

Defines

#define MAP_SCM   0x80000
#define MAP_PERSISTENT   0
#define SGTB_TYPE_PMAP   0x1
#define SGTB_TYPE_SECTION   0x2
#define SGTB_VALID_ENTRY   0x4
#define SGTB_VALID_DATA   0x8

Typedefs

typedef m_segtbl_entry_s m_segtbl_entry_t
typedef m_segidx_entry_s m_segidx_entry_t
typedef m_segidx_s m_segidx_t
typedef m_segtbl_s m_segtbl_t

Functions

m_result_t m_segmentmgr_init ()
 Creates the segment manager and reincarnates any previous life persistent segments.
m_result_t m_segmentmgr_fini ()
 Shutdowns the segment manager.
void * m_pmap2 (void *start, size_t length, int prot, int flags)
 Maps an address space region into persistent memory.
m_result_t m_segment_find_using_addr (void *addr, m_segidx_entry_t **entryp)

Variables

m_segtbl_t m_segtbl


Detailed Description

Routines concerning the checkpointing and restoration of persistent segments.

Author:
Haris Volos <hvolos@cs.wisc.edu>

Definition in file segment.h.


Define Documentation

#define SGTB_TYPE_PMAP   0x1

Persistent segment table entry flags

Definition at line 64 of file segment.h.

Referenced by m_pmap(), and m_pmap2().


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