Lines Matching refs:dm_hash_table
636 struct dm_hash_table;
641 struct dm_hash_table *dm_hash_create(unsigned size_hint);
642 void dm_hash_destroy(struct dm_hash_table *t);
643 void dm_hash_wipe(struct dm_hash_table *t);
645 void *dm_hash_lookup(struct dm_hash_table *t, const char *key);
646 int dm_hash_insert(struct dm_hash_table *t, const char *key, void *data);
647 void dm_hash_remove(struct dm_hash_table *t, const char *key);
649 void *dm_hash_lookup_binary(struct dm_hash_table *t, const char *key, uint32_t len);
650 int dm_hash_insert_binary(struct dm_hash_table *t, const char *key, uint32_t len,
652 void dm_hash_remove_binary(struct dm_hash_table *t, const char *key, uint32_t len);
654 unsigned dm_hash_get_num_entries(struct dm_hash_table *t);
655 void dm_hash_iter(struct dm_hash_table *t, dm_hash_iterate_fn f);
657 char *dm_hash_get_key(struct dm_hash_table *t, struct dm_hash_node *n);
658 void *dm_hash_get_data(struct dm_hash_table *t, struct dm_hash_node *n);
659 struct dm_hash_node *dm_hash_get_first(struct dm_hash_table *t);
660 struct dm_hash_node *dm_hash_get_next(struct dm_hash_table *t, struct dm_hash_node *n);