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

Function m_free

freebsd/sys/mbuf.h:1428–1445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426}
1427
1428static __inline struct mbuf *
1429m_free(struct mbuf *m)
1430{
1431 struct mbuf *n = m->m_next;
1432
1433 MBUF_PROBE1(m__free, m);
1434 if ((m->m_flags & (M_PKTHDR|M_NOFREE)) == (M_PKTHDR|M_NOFREE))
1435 m_tag_delete_chain(m, NULL);
1436 if (m->m_flags & M_PKTHDR && m->m_pkthdr.csum_flags & CSUM_SND_TAG)
1437 m_snd_tag_rele(m->m_pkthdr.snd_tag);
1438 if (m->m_flags & M_EXTPG)
1439 mb_free_extpg(m);
1440 else if (m->m_flags & M_EXT)
1441 mb_free_ext(m);
1442 else if ((m->m_flags & M_NOFREE) == 0)
1443 uma_zfree(zone_mbuf, m);
1444 return (n);
1445}
1446
1447static __inline int
1448rt_m_getfib(struct mbuf *m)

Callers 15

ipfw_natFunction · 0.50
tcp_pcap_m_freemFunction · 0.50
tcp_output.cFile · 0.50
sctp_m_freeFunction · 0.50
syncache_freeFunction · 0.50
syncache_addFunction · 0.50
in_pcbfree_deferredFunction · 0.50
ip_input.cFile · 0.50
ip_fragmentFunction · 0.50
ip_ctloutputFunction · 0.50
icmp_reflectFunction · 0.50
ip_redir_allocFunction · 0.50

Calls 5

m_tag_delete_chainFunction · 0.85
mb_free_extpgFunction · 0.85
mb_free_extFunction · 0.85
m_snd_tag_releFunction · 0.70
uma_zfreeFunction · 0.50

Tested by

no test coverage detected