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

Function ttyinq_bytesleft

components/lwp/terminal/bsd_ttyqueue.h:111–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111rt_inline size_t ttyinq_bytesleft(struct ttyinq *ti)
112{
113 size_t len;
114
115 /* Make sure the usage never exceeds the length. */
116 len = ti->ti_nblocks * TTYINQ_DATASIZE;
117 MPASS(len >= ti->ti_end);
118
119 return (len - ti->ti_end);
120}
121
122rt_inline size_t ttyinq_bytescanonicalized(struct ttyinq *ti)
123{

Callers 3

ttydisc_readFunction · 0.85
ttydisc_rint_pollFunction · 0.85
ttyinq_write_nofragFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected