| 159 | } |
| 160 | |
| 161 | static __inline size_t |
| 162 | ttyoutq_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 | |
| 173 | static __inline size_t |
| 174 | ttyoutq_bytesused(struct ttyoutq *to) |
no outgoing calls
no test coverage detected