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

Function spdcache_destroy

freebsd/netipsec/key.c:8246–8260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8244
8245#ifdef VIMAGE
8246void
8247spdcache_destroy(void)
8248{
8249 int i;
8250
8251 if (SPDCACHE_ENABLED()) {
8252 spdcache_clear();
8253 hashdestroy(V_spdcachehashtbl, M_IPSEC_SPDCACHE, V_spdcachehash_mask);
8254
8255 for (i = 0; i < V_spdcachehash_mask + 1; ++i)
8256 SPDCACHE_LOCK_DESTROY(i);
8257
8258 free(V_spdcache_lock, M_IPSEC_SPDCACHE);
8259 }
8260}
8261#endif
8262void
8263key_init(void)

Callers 1

key_destroyFunction · 0.85

Calls 3

spdcache_clearFunction · 0.85
hashdestroyFunction · 0.50
freeFunction · 0.50

Tested by

no test coverage detected