History

io_uring/mock: add sync read/write

Add support for synchronous zero read/write for mock files.

Pavel Begunkov committed 1 year ago

Commit d1aa0341 parent 4aac0012 files · +65 −6Browse files

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

Unified · Split

include/uapi/linux/io_uring/mock_file.h+3−1
@@ -5,6 +5,7 @@ · 4 unmodified lines
5 5
6enum {6enum {
7 IORING_MOCK_FEAT_CMD_COPY,7 IORING_MOCK_FEAT_CMD_COPY,
8 IORING_MOCK_FEAT_RW_ZERO,
8 9
9 IORING_MOCK_FEAT_END,10 IORING_MOCK_FEAT_END,
10};11};
@@ -17,7 +18,8 @@ struct io_uring_mock_probe { · 6 unmodified lines
17struct io_uring_mock_create {18struct io_uring_mock_create {
18 __u32 out_fd;19 __u32 out_fd;
19 __u32 flags;20 __u32 flags;
20 __u64 __resv[15];21 __u64 file_size;
22 __u64 __resv[14];
21};23};
22 24
23enum {25enum {