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

Function sbfull

freebsd/netinet/accf_http.c:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75#endif
76
77static int
78sbfull(struct sockbuf *sb)
79{
80
81 DPRINT("sbfull, cc(%ld) >= hiwat(%ld): %d, "
82 "mbcnt(%ld) >= mbmax(%ld): %d",
83 sb->sb_cc, sb->sb_hiwat, sb->sb_cc >= sb->sb_hiwat,
84 sb->sb_mbcnt, sb->sb_mbmax, sb->sb_mbcnt >= sb->sb_mbmax);
85 return (sbused(sb) >= sb->sb_hiwat || sb->sb_mbcnt >= sb->sb_mbmax);
86}
87
88/*
89 * start at mbuf m, (must provide npkt if exists)

Callers 3

sohashttpgetFunction · 0.85
soparsehttpversFunction · 0.85
soishttpconnectedFunction · 0.85

Calls 1

sbusedFunction · 0.50

Tested by

no test coverage detected