History

io_uring: add support for IORING_OP_SYNC_FILE_RANGE

This behaves just like sync_file_range(2) does.

Jens Axboe committed 7 years ago

Commit 5d17b4a1 parent 22f96b32 files · +53 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/io_uring.h+2−0
@@ -26,6 +26,7 @@ struct io_uring_sqe { · 25 unmodified lines
26 __kernel_rwf_t rw_flags;26 __kernel_rwf_t rw_flags;
27 __u32 fsync_flags;27 __u32 fsync_flags;
28 __u16 poll_events;28 __u16 poll_events;
29 __u32 sync_range_flags;
29 };30 };
30 __u64 user_data; /* data to be passed back at completion time */31 __u64 user_data; /* data to be passed back at completion time */
31 union {32 union {
@@ -55,6 +56,7 @@ struct io_uring_sqe { · 23 unmodified lines
55#define IORING_OP_WRITE_FIXED 556#define IORING_OP_WRITE_FIXED 5
56#define IORING_OP_POLL_ADD 657#define IORING_OP_POLL_ADD 6
57#define IORING_OP_POLL_REMOVE 758#define IORING_OP_POLL_REMOVE 7
59#define IORING_OP_SYNC_FILE_RANGE 8
58 60
59/*61/*
60 * sqe->fsync_flags62 * sqe->fsync_flags

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t