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

Function tcp_hc_destroy

freebsd/netinet/tcp_hostcache.c:260–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258
259#ifdef VIMAGE
260void
261tcp_hc_destroy(void)
262{
263 int i;
264
265 callout_drain(&V_tcp_hc_callout);
266
267 /* Purge all hc entries. */
268 tcp_hc_purge_internal(1);
269
270 /* Free the uma zone and the allocated hash table. */
271 uma_zdestroy(V_tcp_hostcache.zone);
272
273 for (i = 0; i < V_tcp_hostcache.hashsize; i++)
274 mtx_destroy(&V_tcp_hostcache.hashbase[i].hch_mtx);
275 free(V_tcp_hostcache.hashbase, M_HOSTCACHE);
276}
277#endif
278
279/*

Callers 1

tcp_destroyFunction · 0.85

Calls 3

tcp_hc_purge_internalFunction · 0.85
uma_zdestroyFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected