Home
last modified time | relevance | path

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

/freebsd/contrib/unbound/validator/
H A Dval_kcache.c52 struct key_cache* kcache = (struct key_cache*)calloc(1, in key_cache_create() local
53 sizeof(*kcache)); in key_cache_create()
55 if(!kcache) { in key_cache_create()
62 kcache->slab = slabhash_create(numtables, start_size, maxmem, in key_cache_create()
65 if(!kcache->slab) { in key_cache_create()
67 free(kcache); in key_cache_create()
70 return kcache; in key_cache_create()
74 key_cache_delete(struct key_cache* kcache) in key_cache_delete() argument
76 if(!kcache) in key_cache_delete()
78 slabhash_delete(kcache->slab); in key_cache_delete()
[all …]
H A Dval_kcache.h70 void key_cache_delete(struct key_cache* kcache);
81 void key_cache_insert(struct key_cache* kcache, struct key_entry_key* kkey,
91 void key_cache_remove(struct key_cache* kcache,
107 struct key_entry_key* key_cache_obtain(struct key_cache* kcache,
116 size_t key_cache_get_mem(struct key_cache* kcache);
H A Dvalidator.h82 struct key_cache* kcache; member
H A Dvalidator.c145 val_env->kcache = env->key_cache; in val_apply_cfg()
146 if(!val_env->kcache) in val_apply_cfg()
147 val_env->kcache = key_cache_create(cfg); in val_apply_cfg()
148 if(!val_env->kcache) { in val_apply_cfg()
152 env->key_cache = val_env->kcache; in val_apply_cfg()
234 key_cache_delete(val_env->kcache); in val_deinit()
1869 vq->key_entry = key_cache_obtain(ve->kcache, lookup_name, lookup_len, in processInit()
2155 key_cache_insert(ve->kcache, vq->key_entry, in processValidate()
2170 key_cache_insert(ve->kcache, vq->key_entry, in processValidate()
3298 key_cache_insert(ve->kcache, vq->key_entry, in process_dnskey_response()
[all …]