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

Function deinit_siftr

freebsd/netinet/siftr.c:1508–1518  ·  view source on GitHub ↗

* Module is being unloaded or machine is shutting down. Take care of cleanup. */

Source from the content-addressed store, hash-verified

1506 * Module is being unloaded or machine is shutting down. Take care of cleanup.
1507 */
1508static int
1509deinit_siftr(void)
1510{
1511 /* Cleanup. */
1512 siftr_manage_ops(SIFTR_DISABLE);
1513 hashdestroy(counter_hash, M_SIFTR, siftr_hashmask);
1514 mtx_destroy(&siftr_pkt_queue_mtx);
1515 mtx_destroy(&siftr_pkt_mgr_mtx);
1516
1517 return (0);
1518}
1519
1520/*
1521 * Module has just been loaded into the kernel.

Callers 1

siftr_load_handlerFunction · 0.85

Calls 2

siftr_manage_opsFunction · 0.85
hashdestroyFunction · 0.50

Tested by

no test coverage detected