MCPcopy Create free account
hub / github.com/axboe/liburing / cleanup_buf_ring

Function cleanup_buf_ring

test/buf-ring-mshot.c:126–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126static 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
136static void recycle_buffer(struct test_ctx *ctx, int bid)
137{

Callers 1

run_shared_testFunction · 0.85

Calls 1

io_uring_free_buf_ringFunction · 0.85

Tested by

no test coverage detected