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

Function ttyoutq_bytesleft

freebsd/sys/ttyqueue.h:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161static __inline size_t
162ttyoutq_bytesleft(struct ttyoutq *to)
163{
164 size_t len;
165
166 /* Make sure the usage never exceeds the length. */
167 len = to->to_nblocks * TTYOUTQ_DATASIZE;
168 MPASS(len >= to->to_end);
169
170 return (len - to->to_end);
171}
172
173static __inline size_t
174ttyoutq_bytesused(struct ttyoutq *to)

Callers 4

ttydisc_write_pollFunction · 0.85
ttydisc_wakeup_watermarkFunction · 0.85
ttyoutq_write_nofragFunction · 0.85
tty_checkoutqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected