Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tmem.c File Reference
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/atomic.h>
#include "tmem.h"

Go to the source code of this file.

Data Structures

struct  tmem_objnode_tree_path
 

Macros

#define POOL_SENTINEL   0x87658765
 
#define OBJ_SENTINEL   0x12345678
 
#define OBJNODE_SENTINEL   0xfedcba09
 

Functions

void tmem_register_hostops (struct tmem_hostops *m)
 
void tmem_register_pamops (struct tmem_pamops *m)
 
int tmem_put (struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, char *data, size_t size, bool raw, bool ephemeral)
 
int tmem_get (struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, char *data, size_t *size, bool raw, int get_and_free)
 
int tmem_flush_page (struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index)
 
int tmem_replace (struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, void *new_pampd)
 
int tmem_flush_object (struct tmem_pool *pool, struct tmem_oid *oidp)
 
int tmem_destroy_pool (struct tmem_pool *pool)
 
void tmem_new_pool (struct tmem_pool *pool, uint32_t flags)
 

Macro Definition Documentation

#define OBJ_SENTINEL   0x12345678

Definition at line 35 of file tmem.c.

#define OBJNODE_SENTINEL   0xfedcba09

Definition at line 36 of file tmem.c.

#define POOL_SENTINEL   0x87658765

Definition at line 34 of file tmem.c.

Function Documentation

int tmem_destroy_pool ( struct tmem_pool pool)

Definition at line 738 of file tmem.c.

int tmem_flush_object ( struct tmem_pool pool,
struct tmem_oid oidp 
)

Definition at line 713 of file tmem.c.

int tmem_flush_page ( struct tmem_pool pool,
struct tmem_oid oidp,
uint32_t  index 
)

Definition at line 658 of file tmem.c.

int tmem_get ( struct tmem_pool pool,
struct tmem_oid oidp,
uint32_t  index,
char data,
size_t size,
bool  raw,
int  get_and_free 
)

Definition at line 604 of file tmem.c.

void tmem_new_pool ( struct tmem_pool pool,
uint32_t  flags 
)

Definition at line 756 of file tmem.c.

int tmem_put ( struct tmem_pool pool,
struct tmem_oid oidp,
uint32_t  index,
char data,
size_t  size,
bool  raw,
bool  ephemeral 
)

Definition at line 534 of file tmem.c.

void tmem_register_hostops ( struct tmem_hostops m)

Definition at line 46 of file tmem.c.

void tmem_register_pamops ( struct tmem_pamops m)

Definition at line 58 of file tmem.c.

int tmem_replace ( struct tmem_pool pool,
struct tmem_oid oidp,
uint32_t  index,
void new_pampd 
)

Definition at line 691 of file tmem.c.