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

Function sbrelease_internal

freebsd/kern/uipc_sockbuf.c:724–732  ·  view source on GitHub ↗

* Free mbufs held by a socket, and reserved mbuf space. */

Source from the content-addressed store, hash-verified

722 * Free mbufs held by a socket, and reserved mbuf space.
723 */
724void
725sbrelease_internal(struct sockbuf *sb, struct socket *so)
726{
727
728 sbflush_internal(sb);
729 (void)chgsbsize(so->so_cred->cr_uidinfo, &sb->sb_hiwat, 0,
730 RLIM_INFINITY);
731 sb->sb_mbmax = 0;
732}
733
734void
735sbrelease_locked(struct sockbuf *sb, struct socket *so)

Callers 3

sbrelease_lockedFunction · 0.85
sbdestroyFunction · 0.85
sorflushFunction · 0.85

Calls 2

sbflush_internalFunction · 0.85
chgsbsizeFunction · 0.70

Tested by

no test coverage detected