61 #define RET_SUCCESS SUCCEED 62 #define RET_ERROR FAIL 79 #define HASHKEY(pgno) ((pgno -1) % HASHSIZE) 82 #define DEF_PAGESIZE 8192 83 #define DEF_MAXCACHE 1 85 #define MAX_PAGE_NUMBER 0xffffffff 94 #define MCACHE_DIRTY 0x01 95 #define MCACHE_PINNED 0x02 107 #define ELEM_READ 0x01 108 #define ELEM_WRITTEN 0x02 109 #define ELEM_SYNC 0x03 113 #define MCACHE_EXTEND 0x10 129 int32 (*pgin) (VOID *cookie, int32
pgno, VOID *
page);
130 int32 (*pgout) (VOID *cookie, int32
pgno,
const VOID *
page);
147 #if defined c_plusplus || defined __cplusplus 162 int32 (*pgin)(VOID *cookie, int32
pgno, VOID *
page) ,
163 int32 (*pgout)(VOID *cookie, int32 pgno,
const VOID *page) ,
202 extern VOID mcache_stat(
206 extern intn mcache_page_sync (
212 #if defined c_plusplus || defined __cplusplus
int32 mcache_get_npages(MCACHE *mp)
VOID mcache_filter(MCACHE *mp, int32(*pgin)(VOID *cookie, int32 pgno, VOID *page), int32(*pgout)(VOID *cookie, int32 pgno, const VOID *page), VOID *pgcookie)
intn mcache_sync(MCACHE *mp)
VOID * mcache_get(MCACHE *mp, int32 pgno, int32 flags)
HDFFCLIBAPI intf * maxcache
int32 mcache_get_maxcache(MCACHE *mp)
VOID * mcache_new(MCACHE *mp, int32 *pgnoaddr, int32 flags)
MCACHE * mcache_open(VOID *key, int32 object_id, int32 pagesize, int32 maxcache, int32 npages, int32 flags)
int32 mcache_set_maxcache(MCACHE *mp, int32 maxcache)
int32 mcache_get_pagesize(MCACHE *mp)
#define CIRCLEQ_HEAD(name, type)
intn mcache_put(MCACHE *mp, VOID *page, int32 flags)
intn mcache_close(MCACHE *mp)