Searched refs:equal_fn (Results 1 – 3 of 3) sorted by relevance
/tools/lib/bpf/ |
D | hashmap.h | 37 hashmap_equal_fn equal_fn; member 46 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument 48 .equal_fn = (equal_fn), \ 57 hashmap_equal_fn equal_fn, void *ctx); 59 hashmap_equal_fn equal_fn, 168 if (map->equal_fn(cur->key, (_key), map->ctx)) 176 if (map->equal_fn(cur->key, (_key), map->ctx))
|
D | hashmap.c | 33 hashmap_equal_fn equal_fn, void *ctx) in hashmap__init() argument 36 map->equal_fn = equal_fn; in hashmap__init() 46 hashmap_equal_fn equal_fn, in hashmap__new() argument 53 hashmap__init(map, hash_fn, equal_fn, ctx); in hashmap__new() 131 if (map->equal_fn(cur->key, key, map->ctx)) { in hashmap_find_entry()
|
/tools/testing/selftests/bpf/ |
D | test_hashmap.c | 27 bool equal_fn(const void *a, const void *b, void *ctx) in equal_fn() function 61 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_generic() 268 map = hashmap__new(collision_hash_fn, equal_fn, NULL); in test_hashmap_multimap() 342 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_empty()
|