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

Function sbdrop_locked

freebsd/kern/uipc_sockbuf.c:1581–1587  ·  view source on GitHub ↗

* Drop data from (the front of) a sockbuf. */

Source from the content-addressed store, hash-verified

1579 * Drop data from (the front of) a sockbuf.
1580 */
1581void
1582sbdrop_locked(struct sockbuf *sb, int len)
1583{
1584
1585 SOCKBUF_LOCK_ASSERT(sb);
1586 m_freem(sbcut_internal(sb, len));
1587}
1588
1589/*
1590 * Drop data from (the front of) a sockbuf,

Callers 2

soreceive_streamFunction · 0.85
soisdisconnectedFunction · 0.85

Calls 2

sbcut_internalFunction · 0.85
m_freemFunction · 0.70

Tested by

no test coverage detected