MCPcopy Create free account
hub / github.com/F-Stack/f-stack / spdcache_clear

Function spdcache_clear

freebsd/netipsec/key.c:8228–8243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8226}
8227
8228void
8229spdcache_clear(void)
8230{
8231 struct spdcache_entry *entry;
8232 int i;
8233
8234 for (i = 0; i < V_spdcachehash_mask + 1; ++i) {
8235 SPDCACHE_LOCK(i);
8236 while (!LIST_EMPTY(&V_spdcachehashtbl[i])) {
8237 entry = LIST_FIRST(&V_spdcachehashtbl[i]);
8238 LIST_REMOVE(entry, chain);
8239 spdcache_entry_free(entry);
8240 }
8241 SPDCACHE_UNLOCK(i);
8242 }
8243}
8244
8245#ifdef VIMAGE
8246void

Callers 6

key_unlinkFunction · 0.85
key_unregister_ifnetFunction · 0.85
key_spdaddFunction · 0.85
key_spdflushFunction · 0.85
key_flush_spdFunction · 0.85
spdcache_destroyFunction · 0.85

Calls 1

spdcache_entry_freeFunction · 0.85

Tested by

no test coverage detected