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

Function io_uring_close_ring_fd

src/register.c:321–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321int io_uring_close_ring_fd(struct io_uring *ring)
322{
323 if (!(ring->features & IORING_FEAT_REG_REG_RING))
324 return -EOPNOTSUPP;
325 if (!(ring->int_flags & INT_FLAG_REG_RING))
326 return -EINVAL;
327 if (ring->ring_fd == -1)
328 return -EBADF;
329
330 __sys_close(ring->ring_fd);
331 ring->ring_fd = -1;
332 return 1;
333}
334
335int io_uring_register_buf_ring(struct io_uring *ring,
336 struct io_uring_buf_reg *reg,

Callers 3

testFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

__sys_closeFunction · 0.50

Tested by 1

mainFunction · 0.68