FreeBSD/sys/netinet/tcp_pcap.c
/*
 * Free all mbufs in a chain, decrementing the reference count as
 * necessary.
 *
 * Functions in this file should use this instead of m_freem() when
 * they are freeing mbuf chains that may contain clusters that were
 * already included in tcp_pcap_clusters_referenced_cur.
 */
Free all mbufs in a chain, decrementing the reference count as
necessary.

Functions in this file should use this instead of m_freem() when
they are freeing mbuf chains that may contain clusters that were
already included in tcp_pcap_clusters_referenced_cur.
Free all mbufs in a chain decrementing the reference count as necessary . Functions in this file should use this instead of m_freem () when they are freeing mbuf chains that may contain clusters that were already included in tcp_pcap_clusters_referenced_cur .
static void
tcp_pcap_m_freem(struct mbuf *mb)
{
	while (mb != NULL) {
		if (mb->m_flags & M_EXT)
			atomic_subtract_int(&tcp_pcap_clusters_referenced_cur,
			    1);
		mb = m_free(mb);
	}
}
static void tcp_pcap_m_freem ( struct mbuf * mb ) { while ( mb != NULL ) { if ( mb -> m_flags & M_EXT ) atomic_subtract_int ( & tcp_pcap_clusters_referenced_cur , 1 ) ; mb = m_free ( mb ) ; } }
Free all mbufs in a chain, decrementing the reference count as
 necessary.
Free all mbufs in a chain decrementing the reference count as necessary .