|
unbound 0.1
|
Hash table formed from several smaller ones. More...
#include <slabhash.h>
Data Fields | |
| size_t | size |
| the size of the array - must be power of 2 | |
| uint32_t | mask |
| size bitmask - uses high bits. | |
| unsigned int | shift |
| shift right this many bits to get index into array. | |
| struct lruhash ** | array |
| lookup array of hash tables | |
Hash table formed from several smaller ones.
This results in a partitioned lruhash table, a 'slashtable'. None of the data inside the slabhash may be altered. Therefore, no locks are needed to access the structure.
| size_t slabhash::size |
the size of the array - must be power of 2
Referenced by check_table(), dump_slabhash(), get_slabhash_stats(), slabhash_adjust_size(), slabhash_clear(), slabhash_create(), slabhash_delete(), slabhash_get_mem(), slabhash_get_size(), slabhash_is_size(), slabhash_setmarkdel(), slabhash_status(), and slabhash_traverse().
| uint32_t slabhash::mask |
size bitmask - uses high bits.
Referenced by slab_idx(), slabhash_create(), and slabhash_status().
| unsigned int slabhash::shift |
shift right this many bits to get index into array.
Referenced by slab_idx(), slabhash_create(), and slabhash_status().
| struct lruhash** slabhash::array |
lookup array of hash tables
Referenced by check_table(), dump_slabhash(), get_slabhash_stats(), slabhash_adjust_size(), slabhash_clear(), slabhash_create(), slabhash_delete(), slabhash_get_mem(), slabhash_get_size(), slabhash_gettable(), slabhash_insert(), slabhash_lookup(), slabhash_remove(), slabhash_setmarkdel(), slabhash_status(), slabhash_traverse(), and slabhash_update_space_used().