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

Function recycle_buffer

examples/io_uring-udp.c:210–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static void recycle_buffer(struct ctx *ctx, int idx)
211{
212 io_uring_buf_ring_add(ctx->buf_ring, get_buffer(ctx, idx), buffer_size(ctx), idx,
213 io_uring_buf_ring_mask(BUFFERS), 0);
214 io_uring_buf_ring_advance(ctx->buf_ring, 1);
215}
216
217static int process_cqe_send(struct ctx *ctx, struct io_uring_cqe *cqe)
218{

Callers 2

process_cqe_sendFunction · 0.70
process_cqe_recvFunction · 0.70

Calls 2

get_bufferFunction · 0.85
buffer_sizeFunction · 0.85

Tested by

no test coverage detected