diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-12-19 08:54:20 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-12-19 08:54:20 -0700 |
commit | c43203154d8ac579537aa0c7802b77d463b1f53a (patch) | |
tree | 3189729fcc95e68c14ecfa33cbb70fbbfce2c1b0 /io_uring/io_uring.h | |
parent | dc18b89ab113e9c6c7a529316ddf7029fb55132d (diff) | |
download | lwn-c43203154d8ac579537aa0c7802b77d463b1f53a.tar.gz lwn-c43203154d8ac579537aa0c7802b77d463b1f53a.zip |
io_uring/register: move io_uring_register(2) related code to register.c
Most of this code is basically self contained, move it out of the core
io_uring file to bring a bit more separation to the registration related
bits. This moves another ~10% of the code into register.c.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.h')
-rw-r--r-- | io_uring/io_uring.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index ef783a2444ac..1112c198e516 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -79,6 +79,14 @@ bool io_match_task_safe(struct io_kiocb *head, struct task_struct *task, void *io_mem_alloc(size_t size); void io_mem_free(void *ptr); +enum { + IO_EVENTFD_OP_SIGNAL_BIT, + IO_EVENTFD_OP_FREE_BIT, +}; + +void io_eventfd_ops(struct rcu_head *rcu); +void io_activate_pollwq(struct io_ring_ctx *ctx); + #if defined(CONFIG_PROVE_LOCKING) static inline void io_lockdep_assert_cq_locked(struct io_ring_ctx *ctx) { |