MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / ttyoutq_bytesleft

Function ttyoutq_bytesleft

components/lwp/terminal/bsd_ttyqueue.h:164–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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