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

Function io_uring_queue_init_mem

src/setup.c:434–441  ·  view source on GitHub ↗

* Like io_uring_queue_init_params(), except it allows the application to pass * in a pre-allocated memory range that is used for the shared data between * the kernel and the application. This includes the sqes array, and the two * rings. The memory must be contiguous, the use case here is that the app * allocates a huge page and passes it in. * * Returns the number of bytes used in the buffe

Source from the content-addressed store, hash-verified

432 * host the ring.
433 */
434int io_uring_queue_init_mem(unsigned entries, struct io_uring *ring,
435 struct io_uring_params *p,
436 void *buf, size_t buf_size)
437{
438 /* should already be set... */
439 p->flags |= IORING_SETUP_NO_MMAP;
440 return io_uring_queue_init_try_nosqarr(entries, ring, p, buf, buf_size);
441}
442
443int io_uring_queue_init_params(unsigned entries, struct io_uring *ring,
444 struct io_uring_params *p)

Callers 2

mainFunction · 0.85
setup_ctxFunction · 0.85

Calls 1

Tested by

no test coverage detected