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, bool raw, void *pampd_to_use)
 
int tmem_get (struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, char *data, size_t *sizep, bool raw, int get_and_free)
 
int tmem_flush_page (struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index)
 
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 46 of file tmem.c.

#define OBJNODE_SENTINEL   0xfedcba09

Definition at line 47 of file tmem.c.

#define POOL_SENTINEL   0x87658765

Definition at line 45 of file tmem.c.

Function Documentation

int tmem_destroy_pool ( struct tmem_pool pool)

Definition at line 859 of file tmem.c.

int tmem_flush_object ( struct tmem_pool pool,
struct tmem_oid oidp 
)

Definition at line 834 of file tmem.c.

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

Definition at line 803 of file tmem.c.

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

Definition at line 735 of file tmem.c.

void tmem_new_pool ( struct tmem_pool pool,
uint32_t  flags 
)

Definition at line 877 of file tmem.c.

int tmem_put ( struct tmem_pool pool,
struct tmem_oid oidp,
uint32_t  index,
bool  raw,
void pampd_to_use 
)

Definition at line 560 of file tmem.c.

void tmem_register_hostops ( struct tmem_hostops m)

Definition at line 57 of file tmem.c.

void tmem_register_pamops ( struct tmem_pamops m)

Definition at line 69 of file tmem.c.