Public Types | |
| PERSISTENTSUPERBLOCK_SIZE = SUPERBLOCK_SIZE | |
| PERSISTENTBLOCK_MIN_SIZE = 8 | |
| BITMAP_SIZE = PERSISTENTSUPERBLOCK_SIZE / PERSISTENTBLOCK_MIN_SIZE | |
| BITMAP_ARRAY_ENTRY_SIZE_BITS = 8 * sizeof(uint64_t) | |
| BITMAP_ARRAY_ENTRY_MASK = -1 | |
| BITMAP_ARRAY_SIZE = BITMAP_SIZE / BITMAP_ARRAY_ENTRY_SIZE_BITS | |
| PERSISTENTBLOCK_MAX_SIZE = 8192 | |
| enum | { PERSISTENTSUPERBLOCK_SIZE = SUPERBLOCK_SIZE } |
| enum | { PERSISTENTBLOCK_MIN_SIZE = 8 } |
| enum | { BITMAP_SIZE = PERSISTENTSUPERBLOCK_SIZE / PERSISTENTBLOCK_MIN_SIZE } |
| enum | { BITMAP_ARRAY_ENTRY_SIZE_BITS = 8 * sizeof(uint64_t) } |
| enum | { BITMAP_ARRAY_ENTRY_MASK = -1 } |
| enum | { BITMAP_ARRAY_SIZE = BITMAP_SIZE / BITMAP_ARRAY_ENTRY_SIZE_BITS } |
| enum | { PERSISTENTSUPERBLOCK_SIZE = SUPERBLOCK_SIZE } |
| enum | { PERSISTENTBLOCK_MIN_SIZE = 8 } |
| enum | { BITMAP_SIZE = PERSISTENTSUPERBLOCK_SIZE / PERSISTENTBLOCK_MIN_SIZE } |
| enum | { BITMAP_ARRAY_ENTRY_SIZE_BITS = 8 * sizeof(uint64_t) } |
| enum | { BITMAP_ARRAY_ENTRY_MASK = -1 } |
| enum | { BITMAP_ARRAY_SIZE = BITMAP_SIZE / BITMAP_ARRAY_ENTRY_SIZE_BITS } |
| enum | { PERSISTENTSUPERBLOCK_SIZE = SUPERBLOCK_SIZE } |
| enum | { PERSISTENTBLOCK_MIN_SIZE = 8 } |
| enum | { PERSISTENTBLOCK_MAX_SIZE = 8192 } |
| enum | { BITMAP_SIZE = PERSISTENTSUPERBLOCK_SIZE / PERSISTENTBLOCK_MIN_SIZE } |
| enum | { BITMAP_ARRAY_ENTRY_SIZE_BITS = 8 * sizeof(uint64_t) } |
| enum | { BITMAP_ARRAY_ENTRY_MASK = -1 } |
| enum | { BITMAP_ARRAY_SIZE = BITMAP_SIZE / BITMAP_ARRAY_ENTRY_SIZE_BITS } |
Public Member Functions | |
| persistentSuperblock (char *pregion) | |
| void | volatileInit () |
| bool | isAcquired () |
| void | acquire () |
| int | getFullness () |
| void | allocBlock (int index) |
| void | freeBlock (int index) |
| bool | isBlockFree (int index) |
| void * | getBlockRegion (int index) |
| int | getNumBlocks (void) |
| int | getNumAvailable (void) |
| bool | isFree () |
| void | setBlockSize (int blksize) |
| int | getBlockSize () |
| void | makePersistentSuperblock (int blksize) |
| superblock * | getSuperblock () |
| void | setSuperblock (superblock *sb) |
| persistentSuperblock (char *pregion) | |
| void | volatileInit () |
| bool | isAcquired () |
| void | acquire () |
| int | getFullness () |
| void | allocBlock (int index) |
| void | freeBlock (int index) |
| bool | isBlockFree (int index) |
| void * | getBlockRegion (int index) |
| int | getNumBlocks (void) |
| int | getNumAvailable (void) |
| bool | isFree () |
| void | setBlockSize (int blksize) |
| int | getBlockSize () |
| void | makePersistentSuperblock (int blksize) |
| superblock * | getSuperblock () |
| void | setSuperblock (superblock *sb) |
| persistentSuperblock (char *pregion) | |
| void | volatileInit () |
| bool | isAcquired () |
| void | acquire () |
| int | getFullness () |
| void | allocBlock (int index) |
| void | freeBlock (int index) |
| bool | isBlockFree (int index) |
| void * | getBlockRegion (int index) |
| int | getNumBlocks (void) |
| int | getNumAvailable (void) |
| bool | isFree () |
| void | setBlockSize (int blksize) |
| int | getBlockSize () |
| void | makePersistentSuperblock (int blksize) |
| superblock * | getSuperblock () |
| void | setSuperblock (superblock *sb) |
Definition at line 37 of file persistentsuperblock.h.
1.4.7