* Returns -errno on error, or zero on success. On success, 'ring' * contains the necessary information to read/write to the rings. */
| 454 | * contains the necessary information to read/write to the rings. |
| 455 | */ |
| 456 | __cold int io_uring_queue_init(unsigned entries, struct io_uring *ring, |
| 457 | unsigned flags) |
| 458 | { |
| 459 | struct io_uring_params p; |
| 460 | |
| 461 | memset(&p, 0, sizeof(p)); |
| 462 | p.flags = flags; |
| 463 | |
| 464 | return io_uring_queue_init_params(entries, ring, &p); |
| 465 | } |
| 466 | |
| 467 | __cold void io_uring_queue_exit(struct io_uring *ring) |
| 468 | { |