Date: Tue, 25 Jun 1996 10:45:34 -0700 (PDT) From: fgray@cs.washington.edu (Frederick Gray) To: freebsd-hackers@freebsd.org Subject: M_LEADINGSPACE Message-ID: <199606251745.KAA12278@june.cs.washington.edu>
next in thread | raw e-mail | index | archive | help
In the following macro from sys/mbuf.h:
/*
* Compute the amount of space available
* before the current start of data in an mbuf.
*/
#define M_LEADINGSPACE(m) \
((m)->m_flags & M_EXT ? /* (m)->m_data - (m)->m_ext.ext_buf */ 0 : \
(m)->m_flags & M_PKTHDR ? (m)->m_data - (m)->m_pktdat : \
(m)->m_data - (m)->m_dat)
Would someone explain to me why the definition in the case where M_EXT is true
was commented out and replaced with 0? The original definition looks correct
to me.
-- Fred Gray
-- fgray@cs.washington.edu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606251745.KAA12278>
