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

Function sbused

freebsd/sys/sockbuf.h:212–220  ·  view source on GitHub ↗

* Return how much data sits there in the socket buffer * It might be that some data is not yet ready to be read. */

Source from the content-addressed store, hash-verified

210 * It might be that some data is not yet ready to be read.
211 */
212static inline u_int
213sbused(struct sockbuf *sb)
214{
215
216#if 0
217 SOCKBUF_LOCK_ASSERT(sb);
218#endif
219 return (sb->sb_ccc);
220}
221
222/*
223 * How much space is there in a socket buffer (so->so_snd or so->so_rcv)?

Callers 13

tcp_output.cFile · 0.50
tcp_sndbuf_autoscaleFunction · 0.50
sohasdnsFunction · 0.50
sbfullFunction · 0.50
siftr_siftdataFunction · 0.50
rack_process_ackFunction · 0.50
rack.cFile · 0.50
bbr_process_ackFunction · 0.50
bbr.cFile · 0.50
soo_ioctlFunction · 0.50
soo_fill_kinfoFunction · 0.50
filt_soemptyFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected