io_uring: add wrapper type for io_req_tw_func_t arg
authorCaleb Sander Mateos <csander@purestorage.com>
Fri, 31 Oct 2025 20:34:29 +0000 (14:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Nov 2025 15:31:26 +0000 (08:31 -0700)
commitc33e779aba6804778c1440192a8033a145ba588d
treea96304a9331ed4a98a67eca35861de270417d702
parent4531d165ee39edb315b42a4a43e29339fa068e51
io_uring: add wrapper type for io_req_tw_func_t arg

In preparation for uring_cmd implementations to implement functions
with the io_req_tw_func_t signature, introduce a wrapper struct
io_tw_req to hide the struct io_kiocb * argument. The intention is for
only the io_uring core to access the inner struct io_kiocb *. uring_cmd
implementations should instead call a helper from io_uring/cmd.h to
convert struct io_tw_req to struct io_uring_cmd *.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
13 files changed:
include/linux/io_uring_types.h
io_uring/futex.c
io_uring/io_uring.c
io_uring/io_uring.h
io_uring/msg_ring.c
io_uring/notif.c
io_uring/poll.c
io_uring/poll.h
io_uring/rw.c
io_uring/rw.h
io_uring/timeout.c
io_uring/uring_cmd.c
io_uring/waitid.c