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

Function syncache_free

freebsd/netinet/tcp_syncache.c:231–244  ·  view source on GitHub ↗

* Requires the syncache entry to be already removed from the bucket list. */

Source from the content-addressed store, hash-verified

229 * Requires the syncache entry to be already removed from the bucket list.
230 */
231static void
232syncache_free(struct syncache *sc)
233{
234
235 if (sc->sc_ipopts)
236 (void) m_free(sc->sc_ipopts);
237 if (sc->sc_cred)
238 crfree(sc->sc_cred);
239#ifdef MAC
240 mac_syncache_destroy(&sc->sc_label);
241#endif
242
243 uma_zfree(V_tcp_syncache.zone, sc);
244}
245
246void
247syncache_init(void)

Callers 3

syncache_dropFunction · 0.85
syncache_expandFunction · 0.85
syncache_addFunction · 0.85

Calls 4

mac_syncache_destroyFunction · 0.85
m_freeFunction · 0.50
crfreeFunction · 0.50
uma_zfreeFunction · 0.50

Tested by

no test coverage detected