HDF
4.3.0
API Reference
|
Data Structures | |
struct | BKT |
struct | L_ELEM |
struct | MCACHE |
struct | MCACHE::_lqh |
struct | MCACHE::_hqh |
struct | MCACHE::_lhqh |
Macros | |
#define | RET_SUCCESS SUCCEED |
#define | RET_ERROR FAIL |
#define | HASHSIZE 128 |
#define | HASHKEY(pgno) ((pgno - 1) % HASHSIZE) |
#define | DEF_PAGESIZE 8192 |
#define | DEF_MAXCACHE 1 |
#define | MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a object */ |
#define | MCACHE_DIRTY 0x01 /* page needs to be written */ |
#define | MCACHE_PINNED 0x02 /* page is pinned into memory */ |
#define | ELEM_READ 0x01 |
#define | ELEM_WRITTEN 0x02 |
#define | ELEM_SYNC 0x03 |
#define | MCACHE_EXTEND |
Functions | |
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) |
#define DEF_MAXCACHE 1 |
#define DEF_PAGESIZE 8192 |
#define ELEM_READ 0x01 |
#define ELEM_SYNC 0x03 |
#define ELEM_WRITTEN 0x02 |
#define HASHKEY | ( | pgno | ) | ((pgno - 1) % HASHSIZE) |
#define HASHSIZE 128 |
#define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a object */ |
#define MCACHE_DIRTY 0x01 /* page needs to be written */ |
#define MCACHE_EXTEND |
#define MCACHE_PINNED 0x02 /* page is pinned into memory */ |
#define RET_ERROR FAIL |
#define RET_SUCCESS SUCCEED |
|
extern |
|
extern |