Home | History | Annotate | Download | only in libdb

Lines Matching refs:data

21 static inline int add_node(odb_data_t * data, odb_key_t key, odb_value_t value)
27 /* no locking is necessary: iteration interface retrieve data through
32 if (data->descr->current_size >= data->descr->size) {
33 if (odb_grow_hashtable(data))
36 new_node = data->descr->current_size;
38 node = &data->node_base[new_node];
42 index = odb_do_hash(data, key);
43 node->next = data->hash_base[index];
44 data->hash_base[index] = new_node;
47 odb_commit_reservation(data);
63 odb_data_t * data;
65 data = odb->data;
66 index = data->hash_base[odb_do_hash(data, key)];
68 node = &data->node_base[index];
102 return add_node(data, key, offset);
108 return add_node(odb->data, key, value);