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

NAME

6       io_uring_prep_fadvise - prepare a fadvise request
7

SYNOPSIS

9       #include <fcntl.h>
10       #include <liburing.h>
11
12       void io_uring_prep_fadvise(struct io_uring_sqe *sqe,
13                                  int fd,
14                                  __u64 offset,
15                                  off_t len,
16                                  int advice);
17

DESCRIPTION

19       The  io_uring_prep_fadvise(3) function prepares an fadvise request. The
20       submission queue entry sqe is setup to use the file descriptor  pointed
21       to  by  fd to start an fadvise operation at offset and of len length in
22       bytes, giving it the advise located in advice.
23
24       This function prepares an async posix_fadvise(2) request. See that  man
25       page for details.
26
27

RETURN VALUE

29       None
30

ERRORS

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

SEE ALSO

39       io_uring_get_sqe(3),      io_uring_submit(3),     io_uring_register(2),
40       posix_fadvise(2)
41
42
43
44liburing-2.2                    March 13, 2022        io_uring_prep_fadvise(3)
Impressum