| 124 | } |
| 125 | |
| 126 | static void cleanup_buf_ring(struct test_ctx *ctx) |
| 127 | { |
| 128 | if (ctx->br) { |
| 129 | io_uring_free_buf_ring(&ctx->ring, ctx->br, ctx->nr_bufs, BGID); |
| 130 | ctx->br = NULL; |
| 131 | } |
| 132 | free(ctx->buf_base); |
| 133 | ctx->buf_base = NULL; |
| 134 | } |
| 135 | |
| 136 | static void recycle_buffer(struct test_ctx *ctx, int bid) |
| 137 | { |
no test coverage detected