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

Function m_length

freebsd/kern/uipc_mbuf.c:1330–1345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1328}
1329
1330u_int
1331m_length(struct mbuf *m0, struct mbuf **last)
1332{
1333 struct mbuf *m;
1334 u_int len;
1335
1336 len = 0;
1337 for (m = m0; m != NULL; m = m->m_next) {
1338 len += m->m_len;
1339 if (m->m_next == NULL)
1340 break;
1341 }
1342 if (last != NULL)
1343 *last = m;
1344 return (len);
1345}
1346
1347/*
1348 * Defragment a mbuf chain, returning the shortest possible

Callers 15

sctp_copy_resumeFunction · 0.85
tcp_output.cFile · 0.85
icmp_errorFunction · 0.85
igmp_v3_encap_reportFunction · 0.85
rack.cFile · 0.85
bbr.cFile · 0.85
xlpge_txFunction · 0.85
mld_v2_encap_reportFunction · 0.85
cpswp_tx_enqueueFunction · 0.85
vn_sendfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected