Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
r2net.c File Reference
#include <linux/list.h>
#include "tcp.h"
#include "nodemanager.h"
#include "../tmem.h"
#include "../zcache.h"
#include "ramster.h"
#include "tcp_internal.h"

Go to the source code of this file.

Macros

#define RAMSTER_TESTING
 
#define RMSTR_KEY   0x77347734
 
#define RMSTR_R2NET_MAX_LEN   (R2NET_MAX_PAYLOAD_BYTES - sizeof(struct tmem_xhandle))
 

Enumerations

enum  {
  RMSTR_TMEM_PUT_EPH = 100, RMSTR_TMEM_PUT_PERS, RMSTR_TMEM_ASYNC_GET_REQUEST, RMSTR_TMEM_ASYNC_GET_AND_FREE_REQUEST,
  RMSTR_TMEM_ASYNC_GET_REPLY, RMSTR_TMEM_FLUSH, RMSTR_TMEM_FLOBJ, RMSTR_TMEM_DESTROY_POOL
}
 

Functions

int r2net_remote_target_node_set (int node_num)
 
int ramster_remote_put_handler (struct r2net_msg *msg, u32 len, void *data, void **ret_data)
 
int ramster_remote_flush_handler (struct r2net_msg *msg, u32 len, void *data, void **ret_data)
 
int ramster_remote_flobj_handler (struct r2net_msg *msg, u32 len, void *data, void **ret_data)
 
int r2net_remote_async_get (struct tmem_xhandle *xh, bool free, int remotenode, size_t expect_size, uint8_t expect_cksum, void *extra)
 
int r2net_remote_put (struct tmem_xhandle *xh, char *data, size_t size, bool ephemeral, int *remotenode)
 
int r2net_remote_flush (struct tmem_xhandle *xh, int remotenode)
 
int r2net_remote_flush_object (struct tmem_xhandle *xh, int remotenode)
 
int r2net_register_handlers (void)
 

Macro Definition Documentation

#define RAMSTER_TESTING

Definition at line 18 of file r2net.c.

#define RMSTR_KEY   0x77347734

Definition at line 20 of file r2net.c.

#define RMSTR_R2NET_MAX_LEN   (R2NET_MAX_PAYLOAD_BYTES - sizeof(struct tmem_xhandle))

Definition at line 33 of file r2net.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
RMSTR_TMEM_PUT_EPH 
RMSTR_TMEM_PUT_PERS 
RMSTR_TMEM_ASYNC_GET_REQUEST 
RMSTR_TMEM_ASYNC_GET_AND_FREE_REQUEST 
RMSTR_TMEM_ASYNC_GET_REPLY 
RMSTR_TMEM_FLUSH 
RMSTR_TMEM_FLOBJ 
RMSTR_TMEM_DESTROY_POOL 

Definition at line 22 of file r2net.c.

Function Documentation

int r2net_register_handlers ( void  )

Definition at line 348 of file r2net.c.

int r2net_remote_async_get ( struct tmem_xhandle *  xh,
bool  free,
int  remotenode,
size_t  expect_size,
uint8_t  expect_cksum,
void extra 
)

Definition at line 157 of file r2net.c.

int r2net_remote_flush ( struct tmem_xhandle *  xh,
int  remotenode 
)

Definition at line 299 of file r2net.c.

int r2net_remote_flush_object ( struct tmem_xhandle *  xh,
int  remotenode 
)

Definition at line 319 of file r2net.c.

int r2net_remote_put ( struct tmem_xhandle *  xh,
char data,
size_t  size,
bool  ephemeral,
int remotenode 
)

Definition at line 244 of file r2net.c.

int r2net_remote_target_node_set ( int  node_num)

Definition at line 41 of file r2net.c.

int ramster_remote_flobj_handler ( struct r2net_msg msg,
u32  len,
void data,
void **  ret_data 
)

Definition at line 145 of file r2net.c.

int ramster_remote_flush_handler ( struct r2net_msg msg,
u32  len,
void data,
void **  ret_data 
)

Definition at line 132 of file r2net.c.

int ramster_remote_put_handler ( struct r2net_msg msg,
u32  len,
void data,
void **  ret_data 
)

Definition at line 110 of file r2net.c.