50 if( *key < 32 || 126 < *key )
static struct Trie_node * Trie_acquire_node(struct Trie *tr, char *key)
struct Trie_node * Trie_node_init_noalloc(void *payload, size_t size)
int Trie_release(struct Trie *tr)
int Trie_set_no_alloc(struct Trie *tr, char *key, void *payload, size_t size)
int MALP_Spinlock_unlock(MALP_Spinlock *mutex)
Unlocks the given MALP_Spinlock.
struct Trie_node * children[94]
static void Trie_relax_node(struct Trie_node *tn)
int Trie_set(struct Trie *tr, char *key, void *payload, size_t size)
int Trie_node_set(struct Trie_node *tn, void *payload, size_t size)
void Trie_node_release(struct Trie_node *tn)
int MALP_Spinlock_lock(MALP_Spinlock *mutex)
Locks the given MALP_Spinlock.
void Trie_delete(struct Trie *tr, char *key)
volatile unsigned int MALP_Spinlock
The type of spinlocks in MALP.
static struct Trie_node * Trie_get(struct Trie *tr, char *key)
int Trie_init(struct Trie *tr)
struct Trie_node * Trie_node_init_empty()
void Trie_node_free_payload(struct Trie_node *tn)