| 102 | } |
| 103 | |
| 104 | static __inline size_t |
| 105 | ttyinq_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 | |
| 116 | static __inline size_t |
| 117 | ttyinq_bytescanonicalized(struct ttyinq *ti) |
no outgoing calls
no test coverage detected