aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/io_uring.txt
diff options
context:
space:
mode:
authorNecip Fazil Yildiran <necip@google.com>2020-08-12 20:40:54 +0000
committerDmitry Vyukov <dvyukov@google.com>2020-08-13 13:50:25 +0200
commitcc59e7e4adf110e2ddd4f8ae57df8ecc7b369b38 (patch)
treef5a33e869b653be70f7141f30057d4ff26f83395 /sys/linux/io_uring.txt
parentf5442bde55872d703f184f8617329f706bad8149 (diff)
sys/linux: use per-field directions in descriptions
Diffstat (limited to 'sys/linux/io_uring.txt')
-rw-r--r--sys/linux/io_uring.txt21
1 files changed, 10 insertions, 11 deletions
diff --git a/sys/linux/io_uring.txt b/sys/linux/io_uring.txt
index f4de4a0a9..86e31e251 100644
--- a/sys/linux/io_uring.txt
+++ b/sys/linux/io_uring.txt
@@ -96,20 +96,19 @@ io_uring_files_update {
fds ptr64[in, array[fd]]
}
-# NEED: part of fields are input here and part are output. We can't express this yet (#245).
io_uring_params {
-# sq_entries, cq_entries, features, wq_fd, sq_off, and cq_off are set by the kernel
- sq_entries const[0, int32]
- cq_entries int32[0:IORING_MAX_CQ_ENTRIES]
- flags flags[io_uring_setup_flags, int32]
- sq_thread_cpu int32[0:3]
- sq_thread_idle int32[0:1000]
- features const[0, int32]
- wq_fd fd_io_uring[opt]
+ sq_entries int32 (out)
+ cq_entries int32[0:IORING_MAX_CQ_ENTRIES] (inout)
+ flags flags[io_uring_setup_flags, int32] (in)
+ sq_thread_cpu int32[0:3] (in)
+ sq_thread_idle int32[0:1000] (in)
+ features int32 (out)
+ wq_fd fd_io_uring[opt] (in)
resv array[const[0, int32], 3]
# We don't really use them (they are hard-coded). Thus, just pass some memory region of their size.
- sq_off array[const[0, int32], 10]
- cq_off array[const[0, int32], 10]
+# TODO: Now that per-field directions is supported, can we avoid using hard-coded values for offsets?
+ sq_off array[int32, 10] (out)
+ cq_off array[int32, 10] (out)
}
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #