Lines Matching defs:m
78 * ensure that [off, off + len] is contiguous on the mbuf chain "m".
83 * on error return (NULL return value), original "m" will be freed.
88 m_pulldown(struct mbuf *m, int off, int len, int *offp)
95 if (m == NULL)
96 panic("m == NULL in m_pulldown()");
98 if ((n = m_getptr(m, off, &off)) == NULL) {
99 m_freem(m);
124 m_freem(m);
153 m_freem(m);
186 m_freem(m);
190 MGET(o, M_DONTWAIT, m->m_type);
199 m_freem(m);
222 m_dup1(struct mbuf *m, int off, int len, int wait)
229 if (off == 0 && (m->m_flags & M_PKTHDR) != 0) {
230 MGETHDR(n, wait, m->m_type);
233 if (m_dup_pkthdr(n, m, wait)) {
239 MGET(n, wait, m->m_type);
252 m_copydata(m, off, len, mtod(n, caddr_t));
278 m_tag_prepend(struct mbuf *m, struct m_tag *t)
280 SLIST_INSERT_HEAD(&m->m_pkthdr.ph_tags, t, m_tag_link);
281 m->m_pkthdr.ph_tagsset |= t->m_tag_id;
286 m_tag_delete(struct mbuf *m, struct m_tag *t)
291 SLIST_REMOVE(&m->m_pkthdr.ph_tags, t, m_tag, m_tag_link);
294 SLIST_FOREACH(p, &m->m_pkthdr.ph_tags, m_tag_link)
296 m->m_pkthdr.ph_tagsset = ph_tagsset;
302 m_tag_delete_chain(struct mbuf *m)
306 while ((p = SLIST_FIRST(&m->m_pkthdr.ph_tags)) != NULL) {
307 SLIST_REMOVE_HEAD(&m->m_pkthdr.ph_tags, m_tag_link);
310 m->m_pkthdr.ph_tagsset = 0;
315 m_tag_find(struct mbuf *m, int type, struct m_tag *t)
319 if (!(m->m_pkthdr.ph_tagsset & type))
323 p = SLIST_FIRST(&m->m_pkthdr.ph_tags);
377 m_tag_init(struct mbuf *m)
379 SLIST_INIT(&m->m_pkthdr.ph_tags);
384 m_tag_first(struct mbuf *m)
386 return (SLIST_FIRST(&m->m_pkthdr.ph_tags));
391 m_tag_next(struct mbuf *m, struct m_tag *t)