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

NAME

6       io_uring_prep_madvise - prepare a madvise request
7

SYNOPSIS

9       #include <sys/mman.h>
10       #include <liburing.h>
11
12       void io_uring_prep_madvise(struct io_uring_sqe *sqe,
13                                  void *addr,
14                                  off_t len,
15                                  int advice);
16

DESCRIPTION

18       The  io_uring_prep_madvise(3) function prepares an madvise request. The
19       submission queue entry sqe is setup to start an  madvise  operation  at
20       the  virtual  address of addr and of len length in bytes, giving it the
21       advise located in advice.
22
23       This function prepares an async madvise(2) request. See that  man  page
24       for details.
25
26

RETURN VALUE

28       None
29

ERRORS

31       The CQE res field will contain the result of the operation. See the re‐
32       lated man page for details on possible values. Note that where synchro‐
33       nous system calls will return -1 on failure and set errno to the actual
34       error value, io_uring never uses errno.  Instead it returns the negated
35       errno directly in the CQE res field.
36

SEE ALSO

38       io_uring_get_sqe(3),   io_uring_submit(3),  io_uring_register(2),  mad‐
39       vise(2)
40
41
42
43liburing-2.2                    March 13, 2022        io_uring_prep_madvise(3)
Impressum