diff options
author | Gabriel Krisman Bertazi <krisman@suse.de> | 2024-06-14 12:30:47 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-06-19 07:57:21 -0600 |
commit | ff140cc8628abfb1755691d16cfa8788d8820ef7 (patch) | |
tree | c18b9786fa8a5187fc6e44a2e03704b13993f198 /io_uring/net.h | |
parent | 7481fd93fa0a851740e26026485f56a1305454ce (diff) |
io_uring: Introduce IORING_OP_LISTEN
IORING_OP_LISTEN provides the semantic of listen(2) via io_uring. While
this is an essentially synchronous system call, the main point is to
enable a network path to execute fully with io_uring registered and
descriptorless files.
Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Link: https://lore.kernel.org/r/20240614163047.31581-4-krisman@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/net.h')
-rw-r--r-- | io_uring/net.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/io_uring/net.h b/io_uring/net.h index 49f9a7bc1113..52bfee05f06a 100644 --- a/io_uring/net.h +++ b/io_uring/net.h @@ -52,6 +52,9 @@ void io_send_zc_cleanup(struct io_kiocb *req); int io_bind_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe); int io_bind(struct io_kiocb *req, unsigned int issue_flags); +int io_listen_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe); +int io_listen(struct io_kiocb *req, unsigned int issue_flags); + void io_netmsg_cache_free(const void *entry); #else static inline void io_netmsg_cache_free(const void *entry) |