MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sbappendaddr_nospacecheck_locked

Function sbappendaddr_nospacecheck_locked

freebsd/kern/uipc_sockbuf.c:1221–1231  ·  view source on GitHub ↗

* Append address and data, and optionally, control (ancillary) data to the * receive queue of a socket. If present, m0 must include a packet header * with total length. Returns 0 if insufficient mbufs. Does not validate space * on the receiving sockbuf. */

Source from the content-addressed store, hash-verified

1219 * on the receiving sockbuf.
1220 */
1221int
1222sbappendaddr_nospacecheck_locked(struct sockbuf *sb, const struct sockaddr *asa,
1223 struct mbuf *m0, struct mbuf *control)
1224{
1225 struct mbuf *ctrl_last;
1226
1227 SOCKBUF_LOCK_ASSERT(sb);
1228
1229 ctrl_last = (control == NULL) ? NULL : m_last(control);
1230 return (sbappendaddr_locked_internal(sb, asa, m0, control, ctrl_last));
1231}
1232
1233/*
1234 * Append address and data, and optionally, control (ancillary) data to the

Callers 1

uipc_sendFunction · 0.85

Calls 2

m_lastFunction · 0.50

Tested by

no test coverage detected