Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ramster.h File Reference
#include "../tmem.h"

Go to the source code of this file.

Data Structures

struct  ramster_remotify_hdr
 
struct  flushlist_node
 
struct  ramster_preload
 
union  remotify_list_node
 

Macros

#define FAKE_PAMPD_INTRANSIT_BITS   1
 
#define FAKE_PAMPD_ISREMOTE_BITS   1
 
#define FAKE_PAMPD_REMOTENODE_BITS   8
 
#define FAKE_PAMPD_REMOTESIZE_BITS   13
 
#define FAKE_PAMPD_CHECKSUM_BITS   8
 
#define FAKE_PAMPD_INTRANSIT_SHIFT   1
 
#define FAKE_PAMPD_ISREMOTE_SHIFT
 
#define FAKE_PAMPD_REMOTENODE_SHIFT
 
#define FAKE_PAMPD_REMOTESIZE_SHIFT
 
#define FAKE_PAMPD_CHECKSUM_SHIFT
 
#define FAKE_PAMPD_MASK(x)   ((1UL << (x)) - 1)
 

Enumerations

enum  ramster_remotify_op { RAMSTER_REMOTIFY_FLUSH_PAGE, RAMSTER_REMOTIFY_FLUSH_OBJ }
 

Functions

int r2net_remote_async_get (struct tmem_xhandle *, bool, int, size_t, uint8_t, void *extra)
 
int r2net_remote_put (struct tmem_xhandle *, char *, size_t, bool, int *)
 
int r2net_remote_flush (struct tmem_xhandle *, int)
 
int r2net_remote_flush_object (struct tmem_xhandle *, int)
 
int r2net_register_handlers (void)
 
int r2net_remote_target_node_set (int)
 
int ramster_remotify_pageframe (bool)
 
void ramster_init (bool, bool, bool)
 
void ramster_register_pamops (struct tmem_pamops *)
 
int ramster_localify (int, struct tmem_oid *oidp, uint32_t, char *, unsigned int, void *)
 
voidramster_pampd_free (void *, struct tmem_pool *, struct tmem_oid *, uint32_t, bool)
 
void ramster_count_foreign_pages (bool, int)
 
int ramster_do_preload_flnode (struct tmem_pool *)
 
void ramster_cpu_up (int)
 
void ramster_cpu_down (int)
 

Macro Definition Documentation

#define FAKE_PAMPD_CHECKSUM_BITS   8

Definition at line 55 of file ramster.h.

#define FAKE_PAMPD_CHECKSUM_SHIFT
Value:
FAKE_PAMPD_REMOTESIZE_BITS)

Definition at line 64 of file ramster.h.

#define FAKE_PAMPD_INTRANSIT_BITS   1

Definition at line 51 of file ramster.h.

#define FAKE_PAMPD_INTRANSIT_SHIFT   1

Definition at line 57 of file ramster.h.

#define FAKE_PAMPD_ISREMOTE_BITS   1

Definition at line 52 of file ramster.h.

#define FAKE_PAMPD_ISREMOTE_SHIFT
Value:
FAKE_PAMPD_INTRANSIT_BITS)

Definition at line 58 of file ramster.h.

#define FAKE_PAMPD_MASK (   x)    ((1UL << (x)) - 1)

Definition at line 67 of file ramster.h.

#define FAKE_PAMPD_REMOTENODE_BITS   8

Definition at line 53 of file ramster.h.

#define FAKE_PAMPD_REMOTENODE_SHIFT
Value:
FAKE_PAMPD_ISREMOTE_BITS)

Definition at line 60 of file ramster.h.

#define FAKE_PAMPD_REMOTESIZE_BITS   13

Definition at line 54 of file ramster.h.

#define FAKE_PAMPD_REMOTESIZE_SHIFT
Value:
FAKE_PAMPD_REMOTENODE_BITS)

Definition at line 62 of file ramster.h.

Enumeration Type Documentation

Enumerator:
RAMSTER_REMOTIFY_FLUSH_PAGE 
RAMSTER_REMOTIFY_FLUSH_OBJ 

Definition at line 14 of file ramster.h.

Function Documentation

int r2net_register_handlers ( void  )

Definition at line 348 of file r2net.c.

int r2net_remote_async_get ( struct tmem_xhandle *  ,
bool  ,
int  ,
size_t  ,
uint8_t  ,
void extra 
)

Definition at line 157 of file r2net.c.

int r2net_remote_flush ( struct tmem_xhandle *  ,
int   
)

Definition at line 299 of file r2net.c.

int r2net_remote_flush_object ( struct tmem_xhandle *  ,
int   
)

Definition at line 319 of file r2net.c.

int r2net_remote_put ( struct tmem_xhandle *  ,
char ,
size_t  ,
bool  ,
int  
)

Definition at line 244 of file r2net.c.

int r2net_remote_target_node_set ( int  )

Definition at line 41 of file r2net.c.

void ramster_count_foreign_pages ( bool  ,
int   
)

Definition at line 462 of file ramster.c.

void ramster_cpu_down ( int  )

Definition at line 934 of file ramster.c.

void ramster_cpu_up ( int  )

Definition at line 925 of file ramster.c.

int ramster_do_preload_flnode ( struct tmem_pool )

Definition at line 175 of file ramster.c.

void ramster_init ( bool  ,
bool  ,
bool   
)

Definition at line 959 of file ramster.c.

int ramster_localify ( int  ,
struct tmem_oid oidp,
uint32_t  ,
char ,
unsigned  int,
void  
)

Definition at line 206 of file ramster.c.

void* ramster_pampd_free ( void ,
struct tmem_pool ,
struct tmem_oid ,
uint32_t  ,
bool   
)

Definition at line 424 of file ramster.c.

void ramster_register_pamops ( struct tmem_pamops )

Definition at line 949 of file ramster.c.

int ramster_remotify_pageframe ( bool  )

Definition at line 543 of file ramster.c.