diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-06-04 20:35:44 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-06-04 20:35:44 -0600 |
commit | 9f44fb0e64e68c304d71c1cc21ddb1de7772c1c4 (patch) | |
tree | d77e6e9ec070f76b26d2766e6e8c6ff2e7ae82ac /src/liburing.h | |
parent | b4b3d8c97b2de68e2bbac5f5a37988677c44302a (diff) |
Add basic helpers for file/buffer registration
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src/liburing.h')
-rw-r--r-- | src/liburing.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/liburing.h b/src/liburing.h index db9758d..d7aec73 100644 --- a/src/liburing.h +++ b/src/liburing.h @@ -76,6 +76,13 @@ extern int io_uring_wait_cqe(struct io_uring *ring, extern int io_uring_submit(struct io_uring *ring); extern struct io_uring_sqe *io_uring_get_sqe(struct io_uring *ring); +extern int io_uring_register_buffers(struct io_uring *ring, struct iovec *iovecs, + unsigned nr_iovecs); +extern int io_uring_unregister_buffers(struct io_uring *ring); +extern int io_uring_register_files(struct io_uring *ring, __s32 *files, + unsigned nr_files); +extern int io_uring_unregister_files(struct io_uring *ring); + #define io_uring_for_each_cqe(ring, head, cqe) \ for (head = *(ring)->cq.khead; \ /* See read_barrier() explanation in __io_uring_get_cqe() */ \ |