summaryrefslogtreecommitdiff
path: root/src/syscall.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-01-10 09:32:41 -0700
committerJens Axboe <axboe@kernel.dk>2019-01-10 09:35:34 -0700
commit6cdce17753a3664484c907ed264e734ed5f3c2d7 (patch)
treea48587808e1b4f46b1df9e39223cb7fdf1483097 /src/syscall.c
parent7bf7e8e8e5cf1fe46194c6faf58e94cee815ac6a (diff)
Update API
- io_uring_sqe added a data field that's passed back at completion - io_uring_sqe added an index field, for fixed buffer locations - io_uring_setup(2) system call added a 'nr_iovecs' field Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src/syscall.c')
-rw-r--r--src/syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syscall.c b/src/syscall.c
index eafdd39..d06d59c 100644
--- a/src/syscall.c
+++ b/src/syscall.c
@@ -18,9 +18,9 @@
#endif
int io_uring_setup(unsigned int entries, struct iovec *iovecs,
- struct io_uring_params *p)
+ unsigned nr_iovecs, struct io_uring_params *p)
{
- return syscall(__NR_sys_io_uring_setup, entries, iovecs, p);
+ return syscall(__NR_sys_io_uring_setup, entries, iovecs, nr_iovecs, p);
}
int io_uring_enter(int fd, unsigned int to_submit, unsigned int min_complete,