-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpagepool.h
26 lines (21 loc) · 941 Bytes
/
pagepool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef PAGEPOOL_H
#define PAGEPOOL_H
#include "btree.h"
/*
pageno_t bitmask_pages (struct PagePool *);
int bitmask_it_init (struct PagePool *);
int bitmask_dump (struct PagePool *);
int bitmask_load (struct PagePool *);
int bitmask_populate(struct PagePool *);
int bitmask_check (struct PagePool *, pageno_t);
pageno_t page_find_empty(struct PagePool *);
*/
pageno_t pool_alloc (struct PagePool *);
int pool_dealloc(struct PagePool *, pageno_t);
int pool_read (struct PagePool *, pageno_t, void *);
int pool_write (struct PagePool *, void *, size_t, pageno_t, size_t);
int pool_init (struct PagePool *, char *, uint16_t, pageno_t, size_t);
int pool_free (struct PagePool *);
int pool_init_old (struct PagePool *, char *, uint16_t, pageno_t, size_t);
int pool_init_new (struct PagePool *, char *, uint16_t, pageno_t, size_t);
#endif /* PAGEPOOL_H */