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

Function sbm_clrprotoflags

freebsd/kern/uipc_sockbuf.c:83–95  ·  view source on GitHub ↗

* Our own version of m_clrprotoflags(), that can preserve M_NOTREADY. */

Source from the content-addressed store, hash-verified

81 * Our own version of m_clrprotoflags(), that can preserve M_NOTREADY.
82 */
83static void
84sbm_clrprotoflags(struct mbuf *m, int flags)
85{
86 int mask;
87
88 mask = ~M_PROTOFLAGS;
89 if (flags & PRUS_NOTREADY)
90 mask |= M_NOTREADY;
91 while (m) {
92 m->m_flags &= mask;
93 m = m->m_next;
94 }
95}
96
97/*
98 * Compress M_NOTREADY mbufs after they have been readied by sbready().

Callers 2

sbappend_lockedFunction · 0.85
sbappendcontrol_lockedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected