* We're done with this buffer, add it back to our pool so the kernel is * free to use it again. */
| 903 | * free to use it again. |
| 904 | */ |
| 905 | static int replenish_buffer(struct conn_buf_ring *cbr, int bid, int offset) |
| 906 | { |
| 907 | void *this_buf = cbr->buf + bid * buf_size; |
| 908 | |
| 909 | assert(bid < nr_bufs); |
| 910 | |
| 911 | io_uring_buf_ring_add(cbr->br, this_buf, buf_size, bid, br_mask, offset); |
| 912 | return buf_size; |
| 913 | } |
| 914 | |
| 915 | /* |
| 916 | * Iterate buffers from '*bid' and with a total size of 'bytes' and add them |
no outgoing calls
no test coverage detected