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

NAME

6       io_uring_prep_fallocate - prepare a fallocate request
7

SYNOPSIS

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

DESCRIPTION

19       The  io_uring_prep_fallocate(3)  function prepares a fallocate request.
20       The submission queue entry sqe is setup  to  use  the  file  descriptor
21       pointed  to  by  fd to start a fallocate operation described by mode at
22       offset offset and len length in bytes.
23
24       This function prepares an async fallocate(2) request. See that man page
25       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), fallocate(2)
40
41
42
43liburing-2.2                    March 13, 2022      io_uring_prep_fallocate(3)
Impressum