Searched refs:lruhash (Results 1 - 10 of 10) sorted by relevance

/netbsd-current/external/bsd/unbound/dist/util/storage/
H A Dlruhash.h2 * 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);
315 void lru_demote(struct lruhash* tabl
[all...]
H A Dlruhash.c2 * 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* tabl
[all...]
H A Dslabhash.h46 #include "util/storage/lruhash.h"
53 * This results in a partitioned lruhash table, a 'slashtable'.
65 struct lruhash** array;
172 * Get lruhash table for a given hash value
177 struct lruhash* slabhash_gettable(struct slabhash* table, hashvalue_type hash);
226 /** test sizefunc for lruhash */
228 /** test comparefunc for lruhash */
230 /** test delkey for lruhash */
232 /** test deldata for lruhash */
H A Dslabhash.c40 * This results in a partitioned lruhash table.
59 sl->array = (struct lruhash**)calloc(sl->size, sizeof(struct lruhash*));
172 total += sizeof(struct lruhash*)*sl->size;
179 struct lruhash* slabhash_gettable(struct slabhash* sl, hashvalue_type hash)
/netbsd-current/external/bsd/unbound/dist/testcode/
H A Dunitlruhash.c2 * 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* tabl
[all...]
H A Dunitslabhash.c151 check_lru_table(struct lruhash* table)
/netbsd-current/external/bsd/unbound/dist/
H A DMakefile.in132 util/storage/lruhash.c util/storage/slabhash.c util/tcp_conn_limit.c \
149 random.lo rbtree.lo regional.lo rtt.lo dnstree.lo lookup3.lo lruhash.lo \
471 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
709 $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
716 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storage/dnstree.h \
724 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storage/slabhash.h \
730 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/data/msgparse.h \
733 $(srcdir)/util/data/msgreply.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h \
739 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/sldns/pkthdr.h \
744 $(srcdir)/util/storage/lruhash
[all...]
/netbsd-current/external/bsd/unbound/lib/libunbound/
H A DMakefile56 lruhash.c \
/netbsd-current/external/bsd/unbound/dist/services/cache/
H A Drrset.c98 struct lruhash* table = slabhash_gettable(&r->table, hash);
112 * This is because some lruhash routines have lazy deletion.
223 /* use insert to update entry to manage lruhash
/netbsd-current/external/bsd/unbound/dist/daemon/
H A Dcachedump.c102 /** dump lruhash rrset cache */
104 dump_rrset_lruhash(RES* ssl, struct lruhash* h, time_t now)
107 /* lruhash already locked by caller */
250 /** dump lruhash msg cache */
252 dump_msg_lruhash(RES* ssl, struct worker* worker, struct lruhash* h)
258 /* lruhash already locked by caller */

Completed in 211 milliseconds