* 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
| 432 | * host the ring. |
| 433 | */ |
| 434 | int 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 | |
| 443 | int io_uring_queue_init_params(unsigned entries, struct io_uring *ring, |
| 444 | struct io_uring_params *p) |
no test coverage detected