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

Function ttyinq_bytesleft

freebsd/sys/ttyqueue.h:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static __inline size_t
105ttyinq_bytesleft(struct ttyinq *ti)
106{
107 size_t len;
108
109 /* Make sure the usage never exceeds the length. */
110 len = ti->ti_nblocks * TTYINQ_DATASIZE;
111 MPASS(len >= ti->ti_end);
112
113 return (len - ti->ti_end);
114}
115
116static __inline size_t
117ttyinq_bytescanonicalized(struct ttyinq *ti)

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