1io_uring_prep_sync_file_range(3)liburing Manualio_uring_prep_sync_file_range(3)
2
3
4

NAME

6       io_uring_prep_sync_file_range - prepare a sync_file_range request
7

SYNOPSIS

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

DESCRIPTION

19       The     io_uring_prep_sync_file_range(3)     function     prepares    a
20       sync_file_range request. The submission queue entry sqe is setup to use
21       the file descriptor fd that should get len bytes synced started at off‐
22       set offset and with modifier flags in the flags argument.
23
24       This function prepares an async sync_file_range(2)  request.  See  that
25       man page for details on the arguments.
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), sync_file_range(2)
40
41
42
43liburing-2.2                    March 12, 2022io_uring_prep_sync_file_range(3)
Impressum