Add an option to choose whether the file supports FMODE_NOWAIT, that changes the execution path io_uring request takes.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -6,6 +6,7 @@ · 5 unmodified lines | ||
| 6 | 6 | enum { |
| 7 | 7 | IORING_MOCK_FEAT_CMD_COPY, |
| 8 | 8 | IORING_MOCK_FEAT_RW_ZERO, |
| 9 | + IORING_MOCK_FEAT_RW_NOWAIT, | |
| 9 | 10 | |
| 10 | 11 | IORING_MOCK_FEAT_END, |
| 11 | 12 | }; |
| @@ -15,6 +16,10 @@ struct io_uring_mock_probe { · 3 unmodified lines | ||
| 15 | 16 | __u64 __resv[9]; |
| 16 | 17 | }; |
| 17 | 18 | |
| 19 | +enum { | |
| 20 | + IORING_MOCK_CREATE_F_SUPPORT_NOWAIT = 1, | |
| 21 | +}; | |
| 22 | + | |
| 18 | 23 | struct io_uring_mock_create { |
| 19 | 24 | __u32 out_fd; |
| 20 | 25 | __u32 flags; |