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

Function sbdroprecord_locked

freebsd/kern/uipc_sockbuf.c:1697–1713  ·  view source on GitHub ↗

* Drop a record off the front of a sockbuf and move the next record to the * front. */

Source from the content-addressed store, hash-verified

1695 * front.
1696 */
1697void
1698sbdroprecord_locked(struct sockbuf *sb)
1699{
1700 struct mbuf *m;
1701
1702 SOCKBUF_LOCK_ASSERT(sb);
1703
1704 m = sb->sb_mb;
1705 if (m) {
1706 sb->sb_mb = m->m_nextpkt;
1707 do {
1708 sbfree(sb, m);
1709 m = m_free(m);
1710 } while (m);
1711 }
1712 SB_EMPTY_FIXUP(sb);
1713}
1714
1715/*
1716 * Drop a record off the front of a sockbuf and move the next record to the

Callers 2

sbdroprecordFunction · 0.85
uipc_socket.cFile · 0.85

Calls 2

sbfreeFunction · 0.85
m_freeFunction · 0.50

Tested by

no test coverage detected