Home
last modified time | relevance | path

Searched refs:lru_end (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/external/bsd/unbound/dist/testcode/
H A Dunitlruhash.c168 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
170 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
175 table->lru_end == &k->entry); in test_lru()
178 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
183 table->lru_end == &k->entry); in test_lru()
186 table->lru_end == &k->entry); in test_lru()
190 table->lru_end == &k->entry); in test_lru()
193 table->lru_end == &k->entry); in test_lru()
197 table->lru_end == &k2->entry); in test_lru()
201 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
[all …]
H A Dunitslabhash.c158 unit_assert( (table->lru_start && table->lru_end) || in check_lru_table()
159 (!table->lru_start && !table->lru_end) ); in check_lru_table()
164 if(table->lru_end) in check_lru_table()
165 unit_assert(table->lru_end->lru_next == NULL); in check_lru_table()
/netbsd-src/external/bsd/unbound/dist/util/storage/
H A Dlruhash.c80 table->lru_end = NULL; in lruhash_create()
196 d = table->lru_end; in reclaim_space()
200 table->lru_end = d->lru_prev; in reclaim_space()
276 table->lru_end = entry; in lru_front()
289 else table->lru_end = entry->lru_prev; in lru_remove()
460 table->lru_end = NULL; in lruhash_clear()
564 if (entry == table->lru_end) in lru_demote()
570 entry->lru_prev = table->lru_end; in lru_demote()
572 if (table->lru_end == NULL) in lru_demote()
578 table->lru_end->lru_next = entry; in lru_demote()
[all …]
H A Dlruhash.h173 struct lruhash_entry* lru_end; member