FreeBSD/sys/netgraph/netflow/netflow.c
/*
 * Re-attach incomplete datagram back to priv.
 * If there is already another one, then send incomplete. */
Re-attach incomplete datagram back to priv.
If there is already another one, then send incomplete.
Re - attach incomplete datagram back to priv . If there is already another one then send incomplete .
static void
return_export_dgram(priv_p priv, fib_export_p fe, item_p item, int flags)
{
	mtx_lock(&fe->export_mtx);
	if (fe->exp.item == NULL) {
		fe->exp.item = item;
		mtx_unlock(&fe->export_mtx);
	} else {
		mtx_unlock(&fe->export_mtx);
		export_send(priv, fe, item, flags);
	}
}
static void return_export_dgram ( priv_p priv , fib_export_p fe , item_p item , int flags ) { mtx_lock ( & fe -> export_mtx ) ; if ( fe -> exp . item == NULL ) { fe -> exp . item = item ; mtx_unlock ( & fe -> export_mtx ) ; } else { mtx_unlock ( & fe -> export_mtx ) ; export_send ( priv , fe , item , flags ) ; } }
Re-attach incomplete datagram back to priv.
Re - attach incomplete datagram back to priv .
/*
	 * It may happen on SMP, that some thread has already
	 * put its item there, in this case we bail out and
	 * send what we have to collector.
	 */