Data Fields
slabhash Struct Reference

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. More...
 
unsigned int shift
 shift right this many bits to get index into array. More...
 
struct lruhash ** array
 lookup array of hash tables
 

Detailed Description

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.

Field Documentation

◆ mask

uint32_t slabhash::mask

size bitmask - uses high bits.

Referenced by slab_idx(), slabhash_create(), and slabhash_status().

◆ shift

unsigned int slabhash::shift

shift right this many bits to get index into array.

Referenced by slab_idx(), slabhash_create(), and slabhash_status().


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