Lines Matching refs:dm_hash_table
27 struct dm_hash_table {
91 struct dm_hash_table *dm_hash_create(unsigned size_hint)
95 struct dm_hash_table *hc = dm_malloc(sizeof(*hc));
123 static void _free_nodes(struct dm_hash_table *t)
135 void dm_hash_destroy(struct dm_hash_table *t)
142 static struct dm_hash_node **_find(struct dm_hash_table *t, const char *key,
159 void *dm_hash_lookup_binary(struct dm_hash_table *t, const char *key,
167 int dm_hash_insert_binary(struct dm_hash_table *t, const char *key,
189 void dm_hash_remove_binary(struct dm_hash_table *t, const char *key,
202 void *dm_hash_lookup(struct dm_hash_table *t, const char *key)
207 int dm_hash_insert(struct dm_hash_table *t, const char *key, void *data)
212 void dm_hash_remove(struct dm_hash_table *t, const char *key)
217 unsigned dm_hash_get_num_entries(struct dm_hash_table *t)
222 void dm_hash_iter(struct dm_hash_table *t, dm_hash_iterate_fn f)
234 void dm_hash_wipe(struct dm_hash_table *t)
241 char *dm_hash_get_key(struct dm_hash_table *t __attribute((unused)),
247 void *dm_hash_get_data(struct dm_hash_table *t __attribute((unused)),
253 static struct dm_hash_node *_next_slot(struct dm_hash_table *t, unsigned s)
264 struct dm_hash_node *dm_hash_get_first(struct dm_hash_table *t)
269 struct dm_hash_node *dm_hash_get_next(struct dm_hash_table *t, struct dm_hash_node *n)