Lines Matching refs:mbuf
93 struct mbuf;
94 #define MHSIZE offsetof(struct mbuf, m_dat)
95 #define MPKTHSIZE offsetof(struct mbuf, m_pktdat)
198 (struct mbuf *, void *, void *);
207 struct mbuf { struct
216 struct mbuf *m_next; argument
217 SLIST_ENTRY(mbuf) m_slist;
218 STAILQ_ENTRY(mbuf) m_stailq;
221 struct mbuf *m_nextpkt; argument
222 SLIST_ENTRY(mbuf) m_slistpkt;
223 STAILQ_ENTRY(mbuf) m_stailqpkt;
570 void mb_dupcl(struct mbuf *, struct mbuf *);
571 void mb_free_ext(struct mbuf *);
572 void m_adj(struct mbuf *, int);
573 int m_apply(struct mbuf *, int, int,
575 int m_append(struct mbuf *, int, c_caddr_t);
576 void m_cat(struct mbuf *, struct mbuf *);
577 void m_catpkt(struct mbuf *, struct mbuf *);
578 int m_clget(struct mbuf *m, int how);
579 void *m_cljget(struct mbuf *m, int how, int size);
580 struct mbuf *m_collapse(struct mbuf *, int, int);
581 void m_copyback(struct mbuf *, int, int, c_caddr_t);
582 void m_copydata(const struct mbuf *, int, int, caddr_t);
583 struct mbuf *m_copym(struct mbuf *, int, int, int);
584 struct mbuf *m_copypacket(struct mbuf *, int);
585 void m_copy_pkthdr(struct mbuf *, struct mbuf *);
586 struct mbuf *m_copyup(struct mbuf *, int, int);
587 struct mbuf *m_defrag(struct mbuf *, int);
588 void m_demote_pkthdr(struct mbuf *);
589 void m_demote(struct mbuf *, int, int);
590 struct mbuf *m_devget(char *, int, int, struct ifnet *,
592 struct mbuf *m_dup(const struct mbuf *, int);
593 int m_dup_pkthdr(struct mbuf *, const struct mbuf *, int);
594 void m_extadd(struct mbuf *, caddr_t, u_int,
595 void (*)(struct mbuf *, void *, void *), void *, void *,
597 u_int m_fixhdr(struct mbuf *);
598 struct mbuf *m_fragment(struct mbuf *, int, int);
599 void m_freem(struct mbuf *);
600 struct mbuf *m_get2(int, int, short, int);
601 struct mbuf *m_getjcl(int, short, int, int);
602 struct mbuf *m_getm2(struct mbuf *, int, int, short, int);
603 struct mbuf *m_getptr(struct mbuf *, int, int *);
604 u_int m_length(struct mbuf *, struct mbuf **);
605 int m_mbuftouio(struct uio *, struct mbuf *, int);
606 void m_move_pkthdr(struct mbuf *, struct mbuf *);
607 int m_pkthdr_init(struct mbuf *, int);
608 struct mbuf *m_prepend(struct mbuf *, int, int);
609 void m_print(const struct mbuf *, int);
610 struct mbuf *m_pulldown(struct mbuf *, int, int, int *);
611 struct mbuf *m_pullup(struct mbuf *, int);
612 int m_sanity(struct mbuf *, int);
613 struct mbuf *m_split(struct mbuf *, int, int);
614 struct mbuf *m_uiotombuf(struct uio *, int, int, int, int);
615 struct mbuf *m_unshare(struct mbuf *, int);
651 m_extaddref(struct mbuf *m, caddr_t buf, u_int size, u_int *ref_cnt, in m_extaddref()
652 void (*freef)(struct mbuf *, void *, void *), void *arg1, void *arg2) in m_extaddref() argument
705 m_init(struct mbuf *m, int how, short type, int flags) in m_init()
724 static __inline struct mbuf *
727 struct mbuf *m; in m_get()
737 static __inline struct mbuf *
740 struct mbuf *m; in m_gethdr()
750 static __inline struct mbuf *
753 struct mbuf *m; in m_getcl()
769 m_cljset(struct mbuf *m, void *cl, int type) in m_cljset()
804 m_chtype(struct mbuf *m, short new_type) in m_chtype()
811 m_clrprotoflags(struct mbuf *m) in m_clrprotoflags()
820 static __inline struct mbuf *
821 m_last(struct mbuf *m) in m_last()
830 m_extrefcnt(struct mbuf *m) in m_extrefcnt()
873 KASSERT((((struct mbuf *)m)->m_flags & 0) == 0, \
905 m_align(struct mbuf *m, int len) in m_align()
956 struct mbuf **_mmp = &(m); \
957 struct mbuf *_mm = *_mmp; \
1072 void m_tag_delete(struct mbuf *, struct m_tag *);
1073 void m_tag_delete_chain(struct mbuf *, struct m_tag *);
1075 struct m_tag *m_tag_locate(struct mbuf *, u_int32_t, int, struct m_tag *);
1077 int m_tag_copy_chain(struct mbuf *, const struct mbuf *, int);
1078 void m_tag_delete_nonpersistent(struct mbuf *);
1084 m_tag_init(struct mbuf *m) in m_tag_init()
1119 m_tag_first(struct mbuf *m) in m_tag_first()
1129 m_tag_next(struct mbuf *m __unused, struct m_tag *t) in m_tag_next()
1139 m_tag_prepend(struct mbuf *m, struct m_tag *t) in m_tag_prepend()
1149 m_tag_unlink(struct mbuf *m, struct m_tag *t) in m_tag_unlink()
1165 m_tag_find(struct mbuf *m, int type, struct m_tag *start) in m_tag_find()
1171 static __inline struct mbuf *
1172 m_free(struct mbuf *m) in m_free()
1174 struct mbuf *n = m->m_next; in m_free()
1187 rt_m_getfib(struct mbuf *m) in rt_m_getfib()
1207 uint32_t m_ether_tcpip_hash(const uint32_t, const struct mbuf *, const uint32_t);
1210 void m_profile(struct mbuf *m);
1217 STAILQ_HEAD(, mbuf) mq_head;
1231 static inline struct mbuf *
1234 struct mbuf *m; in mbufq_flush()
1245 struct mbuf *m, *n; in mbufq_drain()
1254 static inline struct mbuf *
1261 static inline struct mbuf *
1265 return (STAILQ_LAST(&mq->mq_head, mbuf, m_stailqpkt)); in mbufq_last()
1283 mbufq_enqueue(struct mbufq *mq, struct mbuf *m) in mbufq_enqueue()
1293 static inline struct mbuf *
1296 struct mbuf *m; in mbufq_dequeue()
1308 mbufq_prepend(struct mbufq *mq, struct mbuf *m) in mbufq_prepend()