1io_uring_queue_init(3)          liburing Manual         io_uring_queue_init(3)
2
3
4

NAME

6       io_uring_queue_init - setup io_uring submission and completion queues
7

SYNOPSIS

9       #include <liburing.h>
10
11       int io_uring_queue_init(unsigned entries, struct io_uring *ring,
12                               unsigned flags);
13

DESCRIPTION

15       The  io_uring_queue_init() function executes the io_uring_setup syscall
16       to initialize the submission and completion queues in the  kernel  with
17       at least entries entries and then maps the resulting file descriptor to
18       memory shared between the application and the kernel.
19
20       On success io_uring_queue_init() returns 0 and ring will point  to  the
21       shared  memory containing the io_uring queues. On failure -errno is re‐
22       turned.
23
24       flags will be passed through to the io_uring_setup syscall (see  io_ur‐
25       ing_setup(2)).
26
27       On  success, the resources held by ring should be released via a corre‐
28       sponding call to io_uring_queue_exit(3).
29

RETURN VALUE

31       io_uring_queue_init(3) returns 0 on success and -errno on failure.
32

SEE ALSO

34       io_uring_setup(2), mmap(2), io_uring_queue_exit(3)
35
36
37
38liburing-0.7                     July 10, 2020          io_uring_queue_init(3)
Impressum