* Return how much data sits there in the socket buffer * It might be that some data is not yet ready to be read. */
| 210 | * It might be that some data is not yet ready to be read. |
| 211 | */ |
| 212 | static inline u_int |
| 213 | sbused(struct sockbuf *sb) |
| 214 | { |
| 215 | |
| 216 | #if 0 |
| 217 | SOCKBUF_LOCK_ASSERT(sb); |
| 218 | #endif |
| 219 | return (sb->sb_ccc); |
| 220 | } |
| 221 | |
| 222 | /* |
| 223 | * How much space is there in a socket buffer (so->so_snd or so->so_rcv)? |
no outgoing calls
no test coverage detected