Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
zcache.h File Reference

Go to the source code of this file.

Data Structures

struct  zcache_preload
 
struct  zcache_client
 

Macros

#define MAX_POOLS_PER_CLIENT   16
 
#define MAX_CLIENTS   16
 
#define LOCAL_CLIENT   ((uint16_t)-1)
 
#define MAX_POOLS_PER_CLIENT   16
 
#define MAX_CLIENTS   16
 
#define LOCAL_CLIENT   ((uint16_t)-1)
 

Functions

struct tmem_poolzcache_get_pool_by_id (uint16_t cli_id, uint16_t poolid)
 
void zcache_put_pool (struct tmem_pool *pool)
 
int zcache_put_page (int, int, struct tmem_oid *, uint32_t, void *, unsigned int, bool, int)
 
int zcache_get_page (int, int, struct tmem_oid *, uint32_t, void *, size_t *, bool, int)
 
int zcache_flush_page (int, int, struct tmem_oid *, uint32_t)
 
int zcache_flush_object (int, int, struct tmem_oid *)
 
void zcache_decompress_to_page (char *, unsigned int, struct page *)
 

Macro Definition Documentation

#define LOCAL_CLIENT   ((uint16_t)-1)

Definition at line 51 of file zcache.h.

#define LOCAL_CLIENT   ((uint16_t)-1)

Definition at line 51 of file zcache.h.

#define MAX_CLIENTS   16

Definition at line 50 of file zcache.h.

#define MAX_CLIENTS   16

Definition at line 50 of file zcache.h.

#define MAX_POOLS_PER_CLIENT   16

Definition at line 48 of file zcache.h.

#define MAX_POOLS_PER_CLIENT   16

Definition at line 48 of file zcache.h.

Function Documentation

void zcache_decompress_to_page ( char ,
unsigned  int,
struct page  
)

Definition at line 715 of file zcache-main.c.

int zcache_flush_object ( int  ,
int  ,
struct tmem_oid  
)

Definition at line 1235 of file zcache-main.c.

int zcache_flush_page ( int  ,
int  ,
struct tmem_oid ,
uint32_t   
)

Definition at line 1212 of file zcache-main.c.

int zcache_get_page ( int  ,
int  ,
struct tmem_oid ,
uint32_t  ,
void ,
size_t ,
bool  ,
int   
)

Definition at line 1182 of file zcache-main.c.

struct tmem_pool* zcache_get_pool_by_id ( uint16_t  cli_id,
uint16_t  poolid 
)
read

Definition at line 331 of file zcache-main.c.

int zcache_put_page ( int  ,
int  ,
struct tmem_oid ,
uint32_t  ,
void ,
unsigned  int,
bool  ,
int   
)

Definition at line 1134 of file zcache-main.c.

void zcache_put_pool ( struct tmem_pool pool)

Definition at line 350 of file zcache-main.c.