FreeBSD/sys/dev/xen/netfront/netfront.c
/**
 * \brief Count the number of fragments in an mbuf chain.
 *
 * Surprisingly, there isn't an M* macro for this.
 */
\brief Count the number of fragments in an mbuf chain.
Surprisingly, there isn't an M* macro for this.
\ brief Count the number of fragments in an mbuf chain . Surprisingly there isn ' t an M * macro for this .
static inline int
xn_count_frags(struct mbuf *m)
{
	int nfrags;
	for (nfrags = 0; m != NULL; m = m->m_next)
		nfrags++;
	return (nfrags);
}
static inline int xn_count_frags ( struct mbuf * m ) { int nfrags ; for ( nfrags = 0 ; m != NULL ; m = m -> m_next ) nfrags ++ ; return ( nfrags ) ; }
\brief Count the number of fragments in an mbuf chain.
\ brief Count the number of fragments in an mbuf chain .