diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-01-10 09:32:41 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-01-10 09:35:34 -0700 |
commit | 6cdce17753a3664484c907ed264e734ed5f3c2d7 (patch) | |
tree | a48587808e1b4f46b1df9e39223cb7fdf1483097 /src/io_uring.c | |
parent | 7bf7e8e8e5cf1fe46194c6faf58e94cee815ac6a (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/io_uring.c')
-rw-r--r-- | src/io_uring.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/io_uring.c b/src/io_uring.c index 6168b56..d9c1511 100644 --- a/src/io_uring.c +++ b/src/io_uring.c @@ -189,11 +189,12 @@ err: * contains the necessary information to read/write to the rings. */ int io_uring_queue_init(unsigned entries, struct io_uring_params *p, - struct iovec *iovecs, struct io_uring *ring) + struct iovec *iovecs, unsigned nr_iovecs, + struct io_uring *ring) { int fd, ret; - fd = io_uring_setup(entries, iovecs, p); + fd = io_uring_setup(entries, iovecs, nr_iovecs, p); if (fd < 0) return fd; |