Lines Matching defs:mbuf
64 * This mbuf simulation should be replaced with (native) mblk_t support.
81 * includes overhead. An mbuf may add a single "mbuf cluster" of size
94 * mtod(m,t) - convert mbuf pointer to data pointer of correct type
99 /* header at beginning of each mbuf: */
101 struct mbuf *mh_next; /* next buffer in chain */
102 struct mbuf *mh_nextpkt; /* next chain in queue/record */
103 int mh_len; /* amount of data in this mbuf */
105 short mh_type; /* type of data in this mbuf */
109 /* record/packet header in first mbuf of chain; valid if M_PKTHDR set */
115 /* description of external storage mapped into mbuf, valid if M_EXT set */
122 typedef struct mbuf {
148 /* mbuf flags */
153 /* mbuf pkthdr flags, also in m_flags */
162 /* mbuf types */
191 * mbuf allocation/deallocation macros:
193 * MGET(struct mbuf *m, int how, int type)
194 * allocates an mbuf and initializes it to contain internal data.
196 * MGETHDR(struct mbuf *m, int how, int type)
197 * allocates an mbuf and initializes it to contain a packet header
203 (m)->m_next = (struct mbuf *)NULL; \
204 (m)->m_nextpkt = (struct mbuf *)NULL; \
213 (m)->m_next = (struct mbuf *)NULL; \
214 (m)->m_nextpkt = (struct mbuf *)NULL; \
229 * MFREE(struct mbuf *m, struct mbuf *nn)
230 * Free a single mbuf and associated external storage.