HomeSort by: relevance | last modified time | path
    Searched refs:lruhash (Results 1 - 9 of 9) sorted by relevancy

  /src/external/bsd/unbound/dist/util/storage/
lruhash.h 2 * util/storage/lruhash.h - hashtable, hash function, LRU keeping.
147 struct lruhash { struct
240 struct lruhash* lruhash_create(size_t start_size, size_t maxmem,
249 void lruhash_delete(struct lruhash* table);
256 void lruhash_clear(struct lruhash* table);
274 void lruhash_insert(struct lruhash* table, hashvalue_type hash,
290 struct lruhash_entry* lruhash_lookup(struct lruhash* table,
299 void lru_touch(struct lruhash* table, struct lruhash_entry* entry);
304 void lruhash_setmarkdel(struct lruhash* table, lruhash_markdelfunc_type md);
314 void lruhash_update_space_used(struct lruhash* table, void* cb_override
    [all...]
slabhash.h 46 #include "util/storage/lruhash.h"
53 * This results in a partitioned lruhash table, a 'slashtable'.
65 struct lruhash** array;
184 * Get lruhash table for a given hash value
189 struct lruhash* slabhash_gettable(struct slabhash* table, hashvalue_type hash);
245 /** test sizefunc for lruhash */
247 /** test comparefunc for lruhash */
249 /** test delkey for lruhash */
251 /** test deldata for lruhash */
lruhash.c 2 * util/storage/lruhash.c - hashtable, hash function, LRU keeping.
44 #include "util/storage/lruhash.h"
61 struct lruhash*
67 struct lruhash* table = (struct lruhash*)calloc(1,
68 sizeof(struct lruhash));
99 bin_delete(struct lruhash* table, struct lruhash_bin* bin)
118 bin_split(struct lruhash* table, struct lruhash_bin* newa,
154 lruhash_delete(struct lruhash* table)
183 reclaim_space(struct lruhash* table, struct lruhash_entry** list
    [all...]
slabhash.c 40 * This results in a partitioned lruhash table.
59 sl->array = (struct lruhash**)calloc(sl->size, sizeof(struct lruhash*));
179 total += sizeof(struct lruhash*)*sl->size;
186 struct lruhash* slabhash_gettable(struct slabhash* sl, hashvalue_type hash)
  /src/external/bsd/unbound/dist/testcode/
unitlruhash.c 2 * testcode/unitlruhash.c - unit test for lruhash table.
44 #include "util/storage/lruhash.h"
47 /** use this type for the lruhash test key */
49 /** use this type for the lruhash test data */
81 test_bin_find_entry(struct lruhash* table)
162 static void test_lru(struct lruhash* table)
209 test_short_table(struct lruhash* table)
235 testadd(struct lruhash* table, testdata_type* ref[])
247 testremove(struct lruhash* table, testdata_type* ref[])
258 testlookup(struct lruhash* table, testdata_type* ref[]
    [all...]
unitslabhash.c 151 check_lru_table(struct lruhash* table)
  /src/external/bsd/unbound/lib/libunbound/
Makefile 56 lruhash.c \
  /src/external/bsd/unbound/dist/services/cache/
rrset.c 101 struct lruhash* table = slabhash_gettable(&r->table, hash);
115 * This is because some lruhash routines have lazy deletion.
239 /* use insert to update entry to manage lruhash
  /src/external/bsd/unbound/dist/daemon/
cachedump.c 145 /** dump lruhash cache and call callback for every item. */
147 dump_lruhash(struct lruhash* table,

Completed in 20 milliseconds