My Kernel v0.1.0
hashtable.h File Reference
Include dependency graph for hashtable.h:

Go to the source code of this file.

Data Structures

struct  hashtable_entry
 Structure used to store entries inside an hashtable. More...
 

Macros

#define DECLARE_HASHTABLE(name, size)
 Declare a hashtable structure.
 
#define hashtable_init(hashtable)    __hashtable_init(&(hashtable)->table, ARRAY_SIZE((hashtable)->buckets))
 Initialize an empty hashtable. More...
 
#define hashtable_insert(hashtable, entry)    __hashtable_insert(&(hashtable)->table, entry)
 Add an entry into an hashtable. More...
 
#define hashtable_remove(hashtable, key)    __hashtable_remove(&(hashtable)->table, key)
 Remove an entry from an hashtable. More...
 
#define hashtable_find(hashtable, key)    __hashtable_find(&(hashtable)->table, key)
 Find an entry inside an hastable. More...