#include "lib/bob.h"
#include "lib/hash.h"
#include "lib/errno.h"
#include "motr/magic.h"
#include "ut/ut.h"
Go to the source code of this file.
|
static uint64_t | hash_func (const struct m0_htable *htable, const void *k) |
|
static bool | key_eq (const void *key1, const void *key2) |
|
| M0_HT_DESCR_DEFINE (foohash, "Hash of fops", static, struct foo, f_hlink, f_magic, FOO_MAGIC, BAR_MAGIC, f_hkey, hash_func, key_eq) |
|
| M0_HT_DEFINE (foohash, static, struct foo, uint64_t) |
|
void | test_hashtable (void) |
|
◆ anonymous enum
Enumerator |
---|
BUCKET_NR | |
FOO_NR | |
BAR_MAGIC | |
FOO_MAGIC | |
Definition at line 49 of file hash.c.
◆ hash_func()
static uint64_t hash_func |
( |
const struct m0_htable * |
htable, |
|
|
const void * |
k |
|
) |
| |
|
static |
◆ key_eq()
static bool key_eq |
( |
const void * |
key1, |
|
|
const void * |
key2 |
|
) |
| |
|
static |
◆ M0_HT_DEFINE()
M0_HT_DEFINE |
( |
foohash |
, |
|
|
static |
, |
|
|
struct foo |
, |
|
|
uint64_t |
|
|
) |
| |
◆ M0_HT_DESCR_DEFINE()
M0_HT_DESCR_DEFINE |
( |
foohash |
, |
|
|
"Hash of fops" |
, |
|
|
static |
, |
|
|
struct foo |
, |
|
|
f_hlink |
, |
|
|
f_magic |
, |
|
|
FOO_MAGIC |
, |
|
|
BAR_MAGIC |
, |
|
|
f_hkey |
, |
|
|
hash_func |
, |
|
|
key_eq |
|
|
) |
| |
◆ test_hashtable()
void test_hashtable |
( |
void |
| ) |
|
◆ foos
◆ thebar