summaryrefslogtreecommitdiff
path: root/src/liburing.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-06-17 11:27:48 -0600
committerJens Axboe <axboe@kernel.dk>2019-06-17 11:27:48 -0600
commit9d9e3b87214ab7e70e7174299890c30ea3b24e28 (patch)
treea8f2da6b1b51fe88afe329f375ff0afc2d1705de /src/liburing.h
parent733223acd6540cc38d7e0b1235f74b42d643b138 (diff)
Make io_uring registration arguments const
We don't modify them, make that clear. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src/liburing.h')
-rw-r--r--src/liburing.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/liburing.h b/src/liburing.h
index 1b4884a..ca854b6 100644
--- a/src/liburing.h
+++ b/src/liburing.h
@@ -58,7 +58,7 @@ struct io_uring {
extern int io_uring_setup(unsigned entries, struct io_uring_params *p);
extern int io_uring_enter(unsigned fd, unsigned to_submit,
unsigned min_complete, unsigned flags, sigset_t *sig);
-extern int io_uring_register(int fd, unsigned int opcode, void *arg,
+extern int io_uring_register(int fd, unsigned int opcode, const void *arg,
unsigned int nr_args);
/*
@@ -77,10 +77,11 @@ extern int io_uring_submit(struct io_uring *ring);
extern int io_uring_submit_and_wait(struct io_uring *ring, unsigned wait_nr);
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,
+extern int io_uring_register_buffers(struct io_uring *ring,
+ const 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,
+extern int io_uring_register_files(struct io_uring *ring, const int *files,
unsigned nr_files);
extern int io_uring_unregister_files(struct io_uring *ring);