Go to the source code of this file.
|
MCACHE * | mcache_open (VOID *key, int32 object_id, int32 pagesize, int32 maxcache, int32 npages, int32 flags) |
|
VOID | mcache_filter (MCACHE *mp, int32(*pgin)(VOID *cookie, int32 pgno, VOID *page), int32(*pgout)(VOID *cookie, int32 pgno, const VOID *page), VOID *pgcookie) |
|
VOID * | mcache_new (MCACHE *mp, int32 *pgnoaddr, int32 flags) |
|
VOID * | mcache_get (MCACHE *mp, int32 pgno, int32 flags) |
|
intn | mcache_put (MCACHE *mp, VOID *page, int32 flags) |
|
intn | mcache_sync (MCACHE *mp) |
|
intn | mcache_close (MCACHE *mp) |
|
int32 | mcache_get_pagesize (MCACHE *mp) |
|
int32 | mcache_get_maxcache (MCACHE *mp) |
|
int32 | mcache_set_maxcache (MCACHE *mp, int32 maxcache) |
|
int32 | mcache_get_npages (MCACHE *mp) |
|
◆ DEF_MAXCACHE
◆ DEF_PAGESIZE
#define DEF_PAGESIZE 8192 |
◆ ELEM_READ
◆ ELEM_SYNC
◆ ELEM_WRITTEN
#define ELEM_WRITTEN 0x02 |
◆ HASHKEY
#define HASHKEY |
( |
|
pgno | ) |
((pgno -1) % HASHSIZE) |
◆ HASHSIZE
◆ MAX_PAGE_NUMBER
#define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a object */ |
◆ MCACHE_DIRTY
#define MCACHE_DIRTY 0x01 /* page needs to be written */ |
◆ MCACHE_EXTEND
◆ MCACHE_PINNED
#define MCACHE_PINNED 0x02 /* page is pinned into memory */ |
◆ RET_ERROR
◆ RET_SUCCESS
◆ BKT
◆ L_ELEM
◆ MCACHE
◆ mcache_close()
intn mcache_close |
( |
MCACHE * |
mp | ) |
|
◆ mcache_filter()
VOID mcache_filter |
( |
MCACHE * |
mp, |
|
|
int32(*)(VOID *cookie, int32 pgno, VOID *page) |
pgin, |
|
|
int32(*)(VOID *cookie, int32 pgno, const VOID *page) |
pgout, |
|
|
VOID * |
pgcookie |
|
) |
| |
◆ mcache_get()
VOID* mcache_get |
( |
MCACHE * |
mp, |
|
|
int32 |
pgno, |
|
|
int32 |
flags |
|
) |
| |
◆ mcache_get_maxcache()
int32 mcache_get_maxcache |
( |
MCACHE * |
mp | ) |
|
◆ mcache_get_npages()
int32 mcache_get_npages |
( |
MCACHE * |
mp | ) |
|
◆ mcache_get_pagesize()
int32 mcache_get_pagesize |
( |
MCACHE * |
mp | ) |
|
◆ mcache_new()
VOID* mcache_new |
( |
MCACHE * |
mp, |
|
|
int32 * |
pgnoaddr, |
|
|
int32 |
flags |
|
) |
| |
◆ mcache_open()
MCACHE* mcache_open |
( |
VOID * |
key, |
|
|
int32 |
object_id, |
|
|
int32 |
pagesize, |
|
|
int32 |
maxcache, |
|
|
int32 |
npages, |
|
|
int32 |
flags |
|
) |
| |
◆ mcache_put()
intn mcache_put |
( |
MCACHE * |
mp, |
|
|
VOID * |
page, |
|
|
int32 |
flags |
|
) |
| |
◆ mcache_set_maxcache()
int32 mcache_set_maxcache |
( |
MCACHE * |
mp, |
|
|
int32 |
maxcache |
|
) |
| |
◆ mcache_sync()
intn mcache_sync |
( |
MCACHE * |
mp | ) |
|