Lines Matching refs:mbuf
78 #include <sys/mbuf.h>
103 static inline void sbcompress(struct sockbuf *, struct mbuf *, struct mbuf *);
106 struct mbuf *, struct mbuf *);
107 static int sbappendcontrol_internal(struct sockbuf *, struct mbuf *,
108 struct mbuf *);
547 * any associated data (mbuf's must be of type MT_SONAME).
551 * should be present (mbuf's must be of type MT_RIGHTS).
608 * Free mbufs held by a socket, and reserved mbuf space.
621 * data from an mbuf queue.
645 * Append mbuf chain m to the last record in the
647 * the mbuf chain is recorded in sb. Empty mbufs are
651 sbappend(struct sockbuf *sb, struct mbuf *m)
689 sbappendstream(struct sockbuf *sb, struct mbuf *m)
725 struct mbuf *m;
726 struct mbuf *n = 0;
760 struct mbuf *m = sb->sb_mb;
778 struct mbuf *m = sb->sb_mb;
779 struct mbuf *n;
802 * Similar to sbappend, except the mbuf chain begins a new record.
805 sbappendrecord(struct sockbuf *sb, struct mbuf *m0)
807 struct mbuf *m;
865 sbinsertoob(struct sockbuf *sb, struct mbuf *m0)
867 struct mbuf *m;
868 struct mbuf **mp;
904 * Put the first mbuf on the queue.
936 struct mbuf *m0, struct mbuf *control)
938 struct mbuf *m, *n, *nlast;
997 sbappendaddr(struct sockbuf *sb, struct sockaddr *asa, struct mbuf *m0,
998 struct mbuf *control, int *error_out)
1051 sbappendcontrol_internal(struct sockbuf *sb, struct mbuf *m0,
1052 struct mbuf *control)
1054 struct mbuf *m, *mlast, *n;
1095 sbappendcontrol(struct sockbuf *sb, struct mbuf *m0, struct mbuf *control,
1146 * Compress mbuf chain m into the socket
1147 * buffer sb following mbuf n. If n
1151 sbcompress(struct sockbuf *sb, struct mbuf *m, struct mbuf *n)
1154 struct mbuf *o;
1237 * Don't call sbdrop(sb, 0) if the leading mbuf is non-empty:
1252 * use m_freem_list to free the mbuf structures
1264 struct mbuf *m, *free_list, *ml;
1265 struct mbuf *next, *last;
1271 ml = (struct mbuf *)0;
1320 ml->m_next = (struct mbuf *)0;
1321 last->m_nextpkt = (struct mbuf *)0;
1356 struct mbuf *m, *mn;
1372 * Create a "control" mbuf containing the specified data
1375 struct mbuf *
1379 struct mbuf *m;
1382 return ((struct mbuf *)NULL);
1384 return ((struct mbuf *)NULL);
1476 pru_rcvoob_notsupp(__unused struct socket *so, __unused struct mbuf *m,
1484 __unused struct mbuf *m, __unused struct sockaddr *addr,
1485 __unused struct mbuf *control, __unused struct proc *p)
1517 __unused struct uio *uio, __unused struct mbuf *top,
1518 __unused struct mbuf *control, __unused int flags)
1527 __unused struct uio *uio, __unused struct mbuf **mp0,
1528 __unused struct mbuf **controlp, __unused int *flagsp)
1613 sballoc(struct sockbuf *sb, struct mbuf *m)
1631 sbfree(struct sockbuf *sb, struct mbuf *m)
1812 &sbspace_factor, 0, "Ratio of mbuf/cluster use for socket layers");