summaryrefslogtreecommitdiff
path: root/io_uring/register.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-12-19 08:54:20 -0700
committerJens Axboe <axboe@kernel.dk>2023-12-19 08:54:20 -0700
commitc43203154d8ac579537aa0c7802b77d463b1f53a (patch)
tree3189729fcc95e68c14ecfa33cbb70fbbfce2c1b0 /io_uring/register.h
parentdc18b89ab113e9c6c7a529316ddf7029fb55132d (diff)
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/register.h')
-rw-r--r--io_uring/register.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/io_uring/register.h b/io_uring/register.h
new file mode 100644
index 000000000000..c9da997d503c
--- /dev/null
+++ b/io_uring/register.h
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef IORING_REGISTER_H
+#define IORING_REGISTER_H
+
+int io_eventfd_unregister(struct io_ring_ctx *ctx);
+int io_unregister_personality(struct io_ring_ctx *ctx, unsigned id);
+
+#endif