| 109 | } |
| 110 | |
| 111 | rt_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 | |
| 122 | rt_inline size_t ttyinq_bytescanonicalized(struct ttyinq *ti) |
| 123 | { |
no outgoing calls
no test coverage detected