#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/atomic.h>
#include "tmem.h"
Go to the source code of this file.
|
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) |
|
#define OBJ_SENTINEL 0x12345678 |
#define OBJNODE_SENTINEL 0xfedcba09 |
#define POOL_SENTINEL 0x87658765 |