| 324 | }; |
| 325 | |
| 326 | static void free_buffer_ring(struct io_uring *ring, struct conn_buf_ring *cbr) |
| 327 | { |
| 328 | if (!cbr->br) |
| 329 | return; |
| 330 | |
| 331 | io_uring_free_buf_ring(ring, cbr->br, nr_bufs, cbr->bgid); |
| 332 | cbr->br = NULL; |
| 333 | if (use_huge) |
| 334 | munmap(cbr->buf, buf_size * nr_bufs); |
| 335 | else |
| 336 | free(cbr->buf); |
| 337 | } |
| 338 | |
| 339 | static void free_buffer_rings(struct io_uring *ring, struct conn *c) |
| 340 | { |
no test coverage detected