Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/cpu.h>
#include <linux/highmem.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/atomic.h>
#include <linux/math64.h>
#include <linux/crypto.h>
#include <linux/string.h>
#include <linux/idr.h>
#include "tmem.h"
#include "../zsmalloc/zsmalloc.h"
Go to the source code of this file.
Data Structures | |
struct | zcache_client |
struct | zbud_hdr |
struct | zbud_page |
struct | zv_hdr |
struct | zcache_preload |
Macros | |
#define | ZCACHE_GFP_MASK (__GFP_FS | __GFP_NORETRY | __GFP_NOWARN | __GFP_NOMEMALLOC) |
#define | MAX_CLIENTS 16 |
#define | LOCAL_CLIENT ((uint16_t)-1) |
#define | ZCACHE_COMP_NAME_SZ CRYPTO_MAX_ALG_NAME |
#define | ZBH_SENTINEL 0x43214321 |
#define | ZBPG_SENTINEL 0xdeadbeef |
#define | ZBUD_MAX_BUDS 2 |
#define | CHUNK_SHIFT 6 |
#define | CHUNK_SIZE (1 << CHUNK_SHIFT) |
#define | CHUNK_MASK (~(CHUNK_SIZE-1)) |
#define | NCHUNKS |
#define | MAX_CHUNK (NCHUNKS-1) |
#define | ZVH_SENTINEL 0x43214321 |
#define | ZCACHE_DSTMEM_ORDER 1 |
Enumerations | |
enum | comp_op { ZCACHE_COMPOP_COMPRESS, ZCACHE_COMPOP_DECOMPRESS, ZCACHE_COMPOP_COMPRESS, ZCACHE_COMPOP_DECOMPRESS } |
Functions | |
MODULE_LICENSE ("GPL") | |
int | zcache_new_client (uint16_t cli_id) |
__setup ("zcache", enable_zcache) | |
__setup ("nocleancache", no_cleancache) | |
__setup ("nofrontswap", no_frontswap) | |
__setup ("zcache=", enable_zcache_compressor) | |
Variables | |
struct list_head | zbud_buddied_list |
#define CHUNK_MASK (~(CHUNK_SIZE-1)) |
Definition at line 168 of file zcache-main.c.
#define CHUNK_SHIFT 6 |
Definition at line 166 of file zcache-main.c.
#define CHUNK_SIZE (1 << CHUNK_SHIFT) |
Definition at line 167 of file zcache-main.c.
#define LOCAL_CLIENT ((uint16_t)-1) |
Definition at line 55 of file zcache-main.c.
#define MAX_CHUNK (NCHUNKS-1) |
Definition at line 171 of file zcache-main.c.
#define MAX_CLIENTS 16 |
Definition at line 54 of file zcache-main.c.
#define NCHUNKS |
Definition at line 169 of file zcache-main.c.
#define ZBH_SENTINEL 0x43214321 |
Definition at line 144 of file zcache-main.c.
#define ZBPG_SENTINEL 0xdeadbeef |
Definition at line 145 of file zcache-main.c.
#define ZBUD_MAX_BUDS 2 |
Definition at line 147 of file zcache-main.c.
#define ZCACHE_COMP_NAME_SZ CRYPTO_MAX_ALG_NAME |
Definition at line 94 of file zcache-main.c.
#define ZCACHE_DSTMEM_ORDER 1 |
Definition at line 1316 of file zcache-main.c.
#define ZCACHE_GFP_MASK (__GFP_FS | __GFP_NORETRY | __GFP_NOWARN | __GFP_NOMEMALLOC) |
Definition at line 50 of file zcache-main.c.
#define ZVH_SENTINEL 0x43214321 |
Definition at line 675 of file zcache-main.c.
enum comp_op |
ZCACHE_COMPOP_COMPRESS | |
ZCACHE_COMPOP_DECOMPRESS | |
ZCACHE_COMPOP_COMPRESS | |
ZCACHE_COMPOP_DECOMPRESS |
Definition at line 98 of file zcache-main.c.
__setup | ( | "zcache" | , |
enable_zcache | |||
) |
__setup | ( | "nocleancache" | , |
no_cleancache | |||
) |
__setup | ( | "nofrontswap" | , |
no_frontswap | |||
) |
__setup | ( | ) |
MODULE_LICENSE | ( | "GPL" | ) |
Definition at line 972 of file zcache-main.c.
unsigned count |
Definition at line 175 of file zcache-main.c.
Definition at line 174 of file zcache-main.c.
Definition at line 181 of file zcache-main.c.