usermode/library/common/chhash.c File Reference

Simple chained bucket hash table implementation. More...

#include "debug.h"
#include "result.h"
#include "util.h"
#include "chhash.h"

Go to the source code of this file.

Classes

struct  m_chhash_bucket_s
struct  m_chhash_bucket_list_s
struct  m_chhash_s

Typedefs

typedef m_chhash_bucket_list_s m_chhash_bucket_list_t

Functions

m_result_t m_chhash_create (m_chhash_t **hp, unsigned int table_size, bool mtsafe)
m_result_t m_chhash_destroy (m_chhash_t **hp)
m_result_t m_chhash_add (m_chhash_t *h, m_chhash_key_t key, m_chhash_value_t value)
m_result_t m_chhash_lookup (m_chhash_t *h, m_chhash_key_t key, m_chhash_value_t *value)
m_result_t m_chhash_remove (m_chhash_t *h, m_chhash_key_t key, m_chhash_value_t *value)
void m_chhash_iter_init (m_chhash_t *chhash, m_chhash_iter_t *iter)
m_result_t m_chhash_iter_next (m_chhash_iter_t *iter, m_chhash_key_t *key, m_chhash_value_t *value)
void m_chhash_print (m_chhash_t *h)


Detailed Description

Simple chained bucket hash table implementation.

Definition in file chhash.c.


Generated on Sat Apr 23 11:43:36 2011 for Mnemosyne by  doxygen 1.4.7