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

Function sbappendcontrol_locked

freebsd/kern/uipc_sockbuf.c:1251–1272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1249}
1250
1251void
1252sbappendcontrol_locked(struct sockbuf *sb, struct mbuf *m0,
1253 struct mbuf *control, int flags)
1254{
1255 struct mbuf *m, *mlast;
1256
1257 sbm_clrprotoflags(m0, flags);
1258 m_last(control)->m_next = m0;
1259
1260 SBLASTRECORDCHK(sb);
1261
1262 for (m = control; m->m_next; m = m->m_next)
1263 sballoc(sb, m);
1264 sballoc(sb, m);
1265 mlast = m;
1266 SBLINKRECORD(sb, control);
1267
1268 sb->sb_mbtail = mlast;
1269 SBLASTMBUFCHK(sb);
1270
1271 SBLASTRECORDCHK(sb);
1272}
1273
1274void
1275sbappendcontrol(struct sockbuf *sb, struct mbuf *m0, struct mbuf *control,

Callers 3

ktls_decryptFunction · 0.85
sbappendcontrolFunction · 0.85
uipc_sendFunction · 0.85

Calls 3

sbm_clrprotoflagsFunction · 0.85
sballocFunction · 0.85
m_lastFunction · 0.50

Tested by

no test coverage detected