Motr  M0
m0_htable Struct Reference

#include <hash.h>

Collaboration diagram for m0_htable:
Collaboration graph

Data Fields

uint64_t h_magic
 
uint64_t h_bucket_nr
 
struct m0_hbucketh_buckets
 
const struct m0_ht_descrh_descr
 

Detailed Description

A simple hash data structure which helps to avoid the linear search of whole list of objects.

Definition at line 173 of file hash.h.

Field Documentation

◆ h_bucket_nr

uint64_t h_bucket_nr

Number of hash buckets used.

Definition at line 178 of file hash.h.

◆ h_buckets

struct m0_hbucket* h_buckets

Array of hash buckets. Hash buckets are supposed to be indexed in increasing order of bucket id retrieved using hash function.

Definition at line 185 of file hash.h.

◆ h_descr

const struct m0_ht_descr* h_descr

Associated hash table descriptor.

Definition at line 188 of file hash.h.

◆ h_magic

uint64_t h_magic

Magic value. Holds M0_LIB_HASHLIST_MAGIC.

Definition at line 175 of file hash.h.


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