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

Function mb_zfini_pack

freebsd/kern/kern_mbuf.c:759–772  ·  view source on GitHub ↗

* The Packet secondary zone's fini routine, executed on the * object's transition from zone cache to keg slab. */

Source from the content-addressed store, hash-verified

757 * object's transition from zone cache to keg slab.
758 */
759static void
760mb_zfini_pack(void *mem, int size)
761{
762 struct mbuf *m;
763
764 m = (struct mbuf *)mem;
765#ifdef INVARIANTS
766 trash_fini(m->m_ext.ext_buf, MCLBYTES);
767#endif
768 uma_zfree_arg(zone_clust, m->m_ext.ext_buf, NULL);
769#ifdef INVARIANTS
770 trash_dtor(mem, size, NULL);
771#endif
772}
773
774/*
775 * The "packet" keg constructor.

Callers

nothing calls this directly

Calls 3

trash_finiFunction · 0.85
uma_zfree_argFunction · 0.85
trash_dtorFunction · 0.85

Tested by

no test coverage detected