NetSurf
Data Fields
store_state Struct Reference

Parameters controlling the backing store. More...

Collaboration diagram for store_state:
[legend]

Data Fields

char * path
 The path to the backing store. More...
 
size_t limit
 The backing store upper bound target size. More...
 
size_t hysteresis
 The hysteresis around the target size. More...
 
hashmap_tentries
 The cache object hash. More...
 
bool entries_dirty
 flag indicating if the entries have been made persistent since they were last changed. More...
 
struct block_file blocks [ENTRY_ELEM_COUNT][BLOCK_FILE_COUNT]
 small block indexes More...
 
bool blocks_dirty
 flag indicating if the block file use maps have been made persistent since they were last changed. More...
 
bool blocks_opened
 flag indicating if a block file has been opened for update since maintenance was previously done. More...
 
uint64_t total_alloc
 total size of all allocated storage. More...
 
size_t hit_count
 number of cache hits More...
 
uint64_t hit_size
 size of storage served More...
 
size_t miss_count
 number of cache misses More...
 

Detailed Description

Parameters controlling the backing store.

Definition at line 197 of file fs_backing_store.c.

Field Documentation

◆ blocks

struct block_file store_state::blocks[ENTRY_ELEM_COUNT][BLOCK_FILE_COUNT]

◆ blocks_dirty

bool store_state::blocks_dirty

flag indicating if the block file use maps have been made persistent since they were last changed.

Definition at line 219 of file fs_backing_store.c.

Referenced by alloc_block(), and write_blocks().

◆ blocks_opened

bool store_state::blocks_opened

flag indicating if a block file has been opened for update since maintenance was previously done.

Definition at line 224 of file fs_backing_store.c.

Referenced by set_block_extents(), store_read_block(), and store_write_block().

◆ entries

hashmap_t* store_state::entries

◆ entries_dirty

bool store_state::entries_dirty

flag indicating if the entries have been made persistent since they were last changed.

Definition at line 211 of file fs_backing_store.c.

Referenced by get_store_entry(), set_store_entry(), and write_entries().

◆ hit_count

size_t store_state::hit_count

number of cache hits

Definition at line 230 of file fs_backing_store.c.

Referenced by fetch(), and finalise().

◆ hit_size

uint64_t store_state::hit_size

size of storage served

Definition at line 231 of file fs_backing_store.c.

Referenced by fetch().

◆ hysteresis

size_t store_state::hysteresis

The hysteresis around the target size.

Definition at line 201 of file fs_backing_store.c.

Referenced by initialise(), and store_evict().

◆ limit

size_t store_state::limit

The backing store upper bound target size.

Definition at line 200 of file fs_backing_store.c.

Referenced by initialise(), and store_evict().

◆ miss_count

size_t store_state::miss_count

number of cache misses

Definition at line 232 of file fs_backing_store.c.

Referenced by fetch(), and finalise().

◆ path

char* store_state::path

◆ total_alloc

uint64_t store_state::total_alloc

total size of all allocated storage.

Definition at line 228 of file fs_backing_store.c.

Referenced by initialise(), invalidate_element(), read_entries(), set_store_entry(), and store_evict().


The documentation for this struct was generated from the following file: