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

Function io_uring_queue_exit

src/setup.c:467–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467__cold void io_uring_queue_exit(struct io_uring *ring)
468{
469 struct io_uring_sq *sq = &ring->sq;
470 struct io_uring_cq *cq = &ring->cq;
471
472 if (!(ring->int_flags & INT_FLAG_APP_MEM)) {
473 __sys_munmap(sq->sqes, sq->sqes_sz);
474 io_uring_unmap_rings(sq, cq);
475 }
476
477 /*
478 * Not strictly required, but frees up the slot we used now rather
479 * than at process exit time.
480 */
481 if (ring->int_flags & INT_FLAG_REG_RING)
482 io_uring_unregister_ring_fd(ring);
483 if (ring->ring_fd != -1)
484 __sys_close(ring->ring_fd);
485}
486
487__cold struct io_uring_probe *io_uring_get_probe_ring(struct io_uring *ring)
488{

Callers 15

test_accept_manyFunction · 0.85
test_accept_cancelFunction · 0.85
test_acceptFunction · 0.85
test_multishot_acceptFunction · 0.85
test_accept_nonblockFunction · 0.85
test_accept_fixedFunction · 0.85
test_accept_sqpollFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 4

io_uring_unmap_ringsFunction · 0.85
__sys_munmapFunction · 0.50
__sys_closeFunction · 0.50

Tested by 15

test_accept_manyFunction · 0.68
test_accept_cancelFunction · 0.68
test_acceptFunction · 0.68
test_multishot_acceptFunction · 0.68
test_accept_nonblockFunction · 0.68
test_accept_fixedFunction · 0.68
test_accept_sqpollFunction · 0.68
test_accept_mshot_stressFunction · 0.68
test_accept_mshot_burstFunction · 0.68