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

Function free_buffer_ring

examples/proxy.c:326–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324};
325
326static 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
339static void free_buffer_rings(struct io_uring *ring, struct conn *c)
340{

Callers 2

free_buffer_ringsFunction · 0.85
setup_buffer_ringsFunction · 0.85

Calls 1

io_uring_free_buf_ringFunction · 0.85

Tested by

no test coverage detected