diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-06-03 20:51:19 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-06-16 23:54:55 +0300 |
commit | 200f3abd14db55f9aadcb74f4e7a678f1c469ba1 (patch) | |
tree | 5588e398e3c45e010128ab2c9bf285e68080ee3d /io_uring/eventfd.h | |
parent | 60b6c075e8eb8bd23c106e2ab13370a146a94a5b (diff) | |
download | linux-200f3abd14db55f9aadcb74f4e7a678f1c469ba1.tar.xz |
io_uring/eventfd: move eventfd handling to separate file
This is pretty nicely abstracted already, but let's move it to a separate
file rather than have it in the main io_uring file. With that, we can
also move the io_ev_fd struct and enum out of global scope.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/eventfd.h')
-rw-r--r-- | io_uring/eventfd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/io_uring/eventfd.h b/io_uring/eventfd.h new file mode 100644 index 000000000000..d394f49c6321 --- /dev/null +++ b/io_uring/eventfd.h @@ -0,0 +1,8 @@ + +struct io_ring_ctx; +int io_eventfd_register(struct io_ring_ctx *ctx, void __user *arg, + unsigned int eventfd_async); +int io_eventfd_unregister(struct io_ring_ctx *ctx); + +void io_eventfd_flush_signal(struct io_ring_ctx *ctx); +void io_eventfd_signal(struct io_ring_ctx *ctx); |