diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-07-12 23:52:42 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-25 03:41:07 +0300 |
commit | bc24d6bd32df0be19df3d30e74be4ba56493c0e2 (patch) | |
tree | 5eb3dd69a67f4eb5f256ec5e9253c16ab72c462b /io_uring/notif.h | |
parent | 68ef5578efc8893489400b1ec30af66dab4f75ff (diff) | |
download | linux-bc24d6bd32df0be19df3d30e74be4ba56493c0e2.tar.xz |
io_uring: add notification slot registration
Let the userspace to register and unregister notification slots.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a0aa8161fe3ebb2a4cc6e5dbd0cffb96e6881cf5.1657643355.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/notif.h')
-rw-r--r-- | io_uring/notif.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/io_uring/notif.h b/io_uring/notif.h index 1dd48efb7744..00efe164bdc4 100644 --- a/io_uring/notif.h +++ b/io_uring/notif.h @@ -6,6 +6,7 @@ #include <linux/nospec.h> #define IO_NOTIF_SPLICE_BATCH 32 +#define IORING_MAX_NOTIF_SLOTS (1U << 10) struct io_notif { struct ubuf_info uarg; @@ -48,6 +49,8 @@ struct io_notif_slot { u32 seq; }; +int io_notif_register(struct io_ring_ctx *ctx, + void __user *arg, unsigned int size); int io_notif_unregister(struct io_ring_ctx *ctx); void io_notif_cache_purge(struct io_ring_ctx *ctx); |